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 (*PRESIZEONBORDER && *PRESIZECURSORICON) {
|
||||||
if (!pFoundWindow->isFullscreen() && !pFoundWindow->hasPopupAt(mouseCoords))
|
if (!pFoundWindow->isFullscreen() && !pFoundWindow->hasPopupAt(mouseCoords))
|
||||||
setCursorIconOnBorder(pFoundWindow);
|
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) {
|
if (FOLLOWMOUSE != 1 && !refocus) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue