diff options
| author | Alexandru Spînu <spinualexandru@outlook.com> | 2025-11-15 21:23:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-15 19:23:32 +0000 |
| commit | b35f78431f5a8cec1df1ff8595b239fcb0ba3e4c (patch) | |
| tree | b5bbb1e0bc7ba4a87ba01ea209e8b992d3638684 /src/managers/input | |
| parent | b62ab4b5786d55f7f2d70a71410f83f8ce91af6a (diff) | |
cursor: ensure cursor reset on changed window states (#12301)
Diffstat (limited to 'src/managers/input')
| -rw-r--r-- | src/managers/input/InputManager.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index fe93a83b..1f1b0d0d 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -546,6 +546,13 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus, bool mouse, st if (*PRESIZEONBORDER && *PRESIZECURSORICON) { if (!pFoundWindow->isFullscreen() && !pFoundWindow->hasPopupAt(mouseCoords)) setCursorIconOnBorder(pFoundWindow); + else if (m_borderIconDirection != BORDERICON_NONE) { + m_borderIconDirection = BORDERICON_NONE; + Cursor::overrideController->unsetOverride(Cursor::CURSOR_OVERRIDE_WINDOW_EDGE); + } + } else if (m_borderIconDirection != BORDERICON_NONE) { + m_borderIconDirection = BORDERICON_NONE; + Cursor::overrideController->unsetOverride(Cursor::CURSOR_OVERRIDE_WINDOW_EDGE); } if (FOLLOWMOUSE != 1 && !refocus) { |
