From 4e97f38be7425c7521af60f096c3c07b95d33c62 Mon Sep 17 00:00:00 2001 From: RamonUnch <74856804+RamonUnch@users.noreply.github.com> Date: Sun, 21 Aug 2022 08:14:45 +0100 Subject: [PATCH] Zero out all hwnds if window is nuresponsive --- hooks.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hooks.c b/hooks.c index 091b84e9..a726daec 100644 --- a/hooks.c +++ b/hooks.c @@ -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.