FZ: fix currently selected zone tracking (#8797)

This commit is contained in:
Andrey Nekrasov 2020-12-29 19:20:12 +03:00 committed by GitHub
parent 4f594c92e8
commit 16e4c34d69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -210,11 +210,11 @@ private:
//contains the non localized key of the powertoy
std::wstring app_key;
static inline FancyZonesModule* s_instance;
static inline HHOOK s_llKeyboardHook;
static inline FancyZonesModule* s_instance = nullptr;
static inline HHOOK s_llKeyboardHook = nullptr;
std::vector<HWINEVENTHOOK> m_staticWinEventHooks;
HWINEVENTHOOK m_objectLocationWinEventHook;
HWINEVENTHOOK m_objectLocationWinEventHook = nullptr;
static LRESULT CALLBACK LowLevelKeyboardProc(int nCode, WPARAM wParam, LPARAM lParam)
{

View File

@ -39,7 +39,7 @@ public:
}
private:
inline static HHOOK hHook;
inline static HHOOK hHook = nullptr;
inline static std::function<void(bool)> callback;
static LRESULT CALLBACK GenericKeyHookProc(int nCode, WPARAM wParam, LPARAM lParam)