mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-05 13:29:50 -05:00
data-device: Clear drag focus when we end the drag-and-drop
Otherwise we'll see a spurious leave event when we start the next dnd.
This commit is contained in:
parent
b68b5e9e0c
commit
74aec06625
1 changed files with 2 additions and 0 deletions
|
|
@ -243,6 +243,8 @@ data_device_end_drag_grab(struct wl_input_device *device)
|
|||
wl_list_remove(&device->drag_icon_listener.link);
|
||||
}
|
||||
|
||||
drag_grab_focus(&device->drag_grab, NULL, 0, 0);
|
||||
|
||||
wl_input_device_end_pointer_grab(device);
|
||||
|
||||
device->drag_data_source = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue