From 1fed9a1a3ed58ae3a2ba6e70b873aaf56fe3fe26 Mon Sep 17 00:00:00 2001 From: Ollie Date: Fri, 29 May 2026 17:10:35 +0200 Subject: [PATCH] =?UTF-8?q?wl=5Fbackend:=20stop=20resetting=20cursor=20on?= =?UTF-8?q?=20pointer=20leave=20too=20=E2=80=94=20let=20cursor=20stay=20du?= =?UTF-8?q?ring=20appicon=20drags?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/wayland/wl_backend.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/backend/wayland/wl_backend.c b/src/backend/wayland/wl_backend.c index 1c9f659..ba4619a 100644 --- a/src/backend/wayland/wl_backend.c +++ b/src/backend/wayland/wl_backend.c @@ -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.