mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 04:45:58 +01:00
Fix swaywm/sway#3545.
This commit is contained in:
parent
28f11aec31
commit
f24e17259e
1 changed files with 3 additions and 0 deletions
|
@ -490,6 +490,9 @@ bool seat_client_start_drag(struct wlr_seat_client *client,
|
|||
seat->drag = drag; // TODO: unset this thing somewhere
|
||||
seat->drag_serial = serial;
|
||||
|
||||
if (seat->drag_source != NULL) {
|
||||
wl_list_remove(&seat->drag_source_destroy.link);
|
||||
}
|
||||
seat->drag_source = source;
|
||||
if (source != NULL) {
|
||||
seat->drag_source_destroy.notify = seat_handle_drag_source_destroy;
|
||||
|
|
Loading…
Reference in a new issue