mirror of
https://github.com/labwc/labwc.git
synced 2026-03-10 05:33:47 -04:00
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:
parent
da9456881d
commit
33859138cf
1 changed files with 1 additions and 1 deletions
|
|
@ -1059,7 +1059,7 @@ cursor_button_release(struct seat *seat, uint32_t button,
|
||||||
bool consumed_by_frame_context =
|
bool consumed_by_frame_context =
|
||||||
handle_release_mousebinding(server, &ctx, button);
|
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 */
|
/* Notify client with pointer focus of button release */
|
||||||
wlr_seat_pointer_notify_button(seat->seat, time_msec,
|
wlr_seat_pointer_notify_button(seat->seat, time_msec,
|
||||||
button, button_state);
|
button, button_state);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue