summaryrefslogtreecommitdiff
path: root/src/managers/input/InputManager.hpp
diff options
context:
space:
mode:
authoroutfoxxed <outfoxxed@outfoxxed.me>2023-04-25 15:00:34 +0000
committerGitHub <noreply@github.com>2023-04-25 16:00:34 +0100
commitf40272d50954fd0995714b789215c938b2bd455d (patch)
tree4b503f7c16fe4f9e52238fa09a0ff38f0be6ac76 /src/managers/input/InputManager.hpp
parente195a51cd4dd1cb15a04d9b67e3aec67199c5bea (diff)
Add follow mouse mode to avoid refocusing under cursor (#2135)
* Add follow mouse mode to avoid refocusing under cursor
Diffstat (limited to 'src/managers/input/InputManager.hpp')
-rw-r--r--src/managers/input/InputManager.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/managers/input/InputManager.hpp b/src/managers/input/InputManager.hpp
index a98ad497..f536072f 100644
--- a/src/managers/input/InputManager.hpp
+++ b/src/managers/input/InputManager.hpp
@@ -175,6 +175,9 @@ class CInputManager {
// for hiding cursor on touch
bool m_bLastInputTouch = false;
+ // for tracking mouse refocus
+ CWindow* m_pLastMouseFocus = nullptr;
+
private:
bool m_bCursorImageOverridden = false;
eBorderIconDirection m_eBorderIconDirection = BORDERICON_NONE;