From cc4864976ac5fad3450a3b9396013c78f7bbf00a Mon Sep 17 00:00:00 2001 From: Yevhenii Holovachov <55396981+yevhenii44@users.noreply.github.com> Date: Fri, 26 Jun 2020 17:20:10 +0300 Subject: [PATCH] Changed position of callback(false) call on disabling hook for shift (#4515) --- src/modules/fancyzones/lib/ShiftKeyHook.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/fancyzones/lib/ShiftKeyHook.cpp b/src/modules/fancyzones/lib/ShiftKeyHook.cpp index 3ab0d8a417..3cc9b9cbfc 100644 --- a/src/modules/fancyzones/lib/ShiftKeyHook.cpp +++ b/src/modules/fancyzones/lib/ShiftKeyHook.cpp @@ -38,9 +38,9 @@ void ShiftKeyHook::disable() { if (hHook) { - callback(false); UnhookWindowsHookEx(hHook); hHook = NULL; + callback(false); } }