mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-05 06:31:57 -07:00
Fix dragging cursor being forced on fullscreen windows (#2115)
Fix two edge cases causing the dragging mouse cursor to be forced on fullscreen windows: - hovering over a window border and running the fullscreen dispatcher - moving mouse focus from a monitor with the resize cursor set to a different monitor with a fullscreen window
This commit is contained in:
@@ -338,8 +338,12 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) {
|
|||||||
|
|
||||||
if (pFoundWindow) {
|
if (pFoundWindow) {
|
||||||
// change cursor icon if hovering over border
|
// change cursor icon if hovering over border
|
||||||
if (*PRESIZEONBORDER && *PRESIZECURSORICON && !pFoundWindow->m_bIsFullscreen && !pFoundWindow->hasPopupAt(mouseCoords)) {
|
if (*PRESIZEONBORDER && *PRESIZECURSORICON) {
|
||||||
setCursorIconOnBorder(pFoundWindow);
|
if (!pFoundWindow->m_bIsFullscreen && !pFoundWindow->hasPopupAt(mouseCoords)) {
|
||||||
|
setCursorIconOnBorder(pFoundWindow);
|
||||||
|
} else if (m_eBorderIconDirection != BORDERICON_NONE) {
|
||||||
|
unsetCursorImage();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// if we're on an input deco, reset cursor. Don't on overridden
|
// if we're on an input deco, reset cursor. Don't on overridden
|
||||||
|
Reference in New Issue
Block a user