wl_backend: stop resetting cursor on pointer leave too — let cursor stay during appicon drags

This commit is contained in:
Ollie 2026-05-29 17:10:35 +02:00
parent 26ea32a28b
commit 1fed9a1a3e
1 changed files with 3 additions and 4 deletions

View File

@ -6448,10 +6448,9 @@ wl_update_pointer_focus(uint32_t time_msec)
last_focused_surface = NULL;
}
wlr_seat_pointer_clear_focus(wl_state.seat);
/* Restore WM cursor when pointer leaves all surfaces.
* Don't reset during grabs — pointer_change_grab manages that. */
if (!wl_state.grab_type)
wl_set_cursor_image("left_ptr");
/* When pointer leaves all surfaces, leave the last cursor in
* place. The next pointer enter will let the client set its own
* cursor, or the grab system manages cursor explicitly. */
}
/* Phase 29 (FFP): focus-follows-pointer — when the pointer enters a new
* managed view, deliver WM keyboard focus without raising.