Skip to content

Commit

Permalink
FZ: fix currently selected zone tracking (#8797)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyoyuppe committed Dec 29, 2020
1 parent 4f594c9 commit 16e4c34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/modules/fancyzones/dll/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,11 @@ class FancyZonesModule : public PowertoyModuleIface
//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)
{
Expand Down
2 changes: 1 addition & 1 deletion src/modules/fancyzones/lib/GenericKeyHook.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class GenericKeyHook
}

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)
Expand Down

0 comments on commit 16e4c34

Please sign in to comment.