From: Johan Malm Date: Sat, 6 Apr 2024 20:46:17 +0000 (+0100) Subject: cursor: fix dnd bug X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=33859138cf97eef2d8fc1e4744ac673101dd156b;p=proto%2Flabwc.git 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 --- 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);