Wayland: Fix fallback decoration cursor updating

When a click through to the fallback decorations caused the end of
a modal like the window menu, the cursor shape would not be updated
until the next time the cursor moved.

This commit adds an update of the cursor for the pointer enter event for
fallback decoration surfaces, in addition to the updates at pointer
motion events.
This commit is contained in:
Camilla Löwy
2025-08-18 16:17:55 +02:00
parent bfa1c424e5
commit 3cf9f6726d
2 changed files with 5 additions and 0 deletions

View File

@@ -1542,7 +1542,10 @@ static void pointerHandleEnter(void* userData,
else
{
if (window->wl.fallback.decorations)
{
window->wl.fallback.focus = surface;
updateFallbackDecorationCursor(window, sx, sy);
}
}
}