Add follow mouse mode to avoid refocusing under cursor (#2135)

* Add follow mouse mode to avoid refocusing under cursor
This commit is contained in:
outfoxxed
2023-04-25 15:00:34 +00:00
committed by GitHub
parent e195a51cd4
commit f40272d509
3 changed files with 8 additions and 1 deletions

View File

@@ -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;