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
This commit is contained in:
Johan Malm 2024-04-06 21:46:17 +01:00 committed by Johan Malm
parent da9456881d
commit 33859138cf

View file

@ -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);