Skip to content

Commit

Permalink
Zero out all hwnds if window is nuresponsive
Browse files Browse the repository at this point in the history
  • Loading branch information
RamonUnch authored Aug 21, 2022
1 parent 971e20e commit 4e97f38
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -3616,6 +3616,7 @@ static int init_movement_and_actions(POINT pt, HWND hwnd, enum action action, in
DorQWORD lpdwResult;
if(!SendMessageTimeout(state.hwnd, 0, 0, 0, SMTO_NORMAL, 128, &lpdwResult)) {
state.blockmouseup = 1;
state.hwnd = LastWin.hwnd = state.sclickhwnd = NULL;
return 1; // Unresponsive window...
}
// AutoFocus on movement/resize.
Expand Down

0 comments on commit 4e97f38

Please sign in to comment.