From 33859138cf97eef2d8fc1e4744ac673101dd156b Mon Sep 17 00:00:00 2001 From: Johan Malm Date: Sat, 6 Apr 2024 21:46:17 +0100 Subject: [PATCH] cursor: fix dnd bug ...where dnd does not finish properly on cursor-button-release if there is no surface under the cursor such as on the desktop when no background client is running. Written-by: @tokyo4j Fixes: #1673 --- src/input/cursor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input/cursor.c b/src/input/cursor.c index 8f4f759e..17c57621 100644 --- a/src/input/cursor.c +++ b/src/input/cursor.c @@ -1059,7 +1059,7 @@ cursor_button_release(struct seat *seat, uint32_t button, bool consumed_by_frame_context = handle_release_mousebinding(server, &ctx, button); - if (ctx.surface && !consumed_by_frame_context) { + if (!consumed_by_frame_context) { /* Notify client with pointer focus of button release */ wlr_seat_pointer_notify_button(seat->seat, time_msec, button, button_state); -- 2.52.0