cursor: ensure cursor reset on changed window states (#12301)

This commit is contained in:
Alexandru Spînu 2025-11-15 21:23:32 +02:00 committed by GitHub
parent b62ab4b578
commit b35f78431f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {