]> git.mdlowis.com Git - proto/labwc.git/commitdiff
cursor: fix dnd bug
authorJohan Malm <jgm323@gmail.com>
Sat, 6 Apr 2024 20:46:17 +0000 (21:46 +0100)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sat, 6 Apr 2024 20:50:12 +0000 (21:50 +0100)
...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

index 8f4f759e48874bfcf8270ac90c18135e9ce7c899..17c57621d185e663b1ce4134a63d6525b6e02ca0 100644 (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);