mirror of
https://github.com/hyprwm/Hyprland
synced 2025-12-24 23:10:03 +01:00
cursor: ensure cursor reset on changed window states (#12301)
This commit is contained in:
parent
b62ab4b578
commit
b35f78431f
1 changed files with 7 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue