mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-02 09:01:39 -05:00
data-device: implement drags with no data source for self-dnd
Properly handle a drag with no data source, i.e., don't crash and send events only to the client that initiated the drag. This way a client can do self drag and drop without offering anything to other clients.
This commit is contained in:
parent
d422a733b4
commit
75a5f7476a
4 changed files with 55 additions and 34 deletions
|
|
@ -297,6 +297,7 @@ struct wl_seat {
|
|||
struct wl_signal selection_signal;
|
||||
|
||||
struct wl_list drag_resource_list;
|
||||
struct wl_client *drag_client;
|
||||
struct wl_data_source *drag_data_source;
|
||||
struct wl_listener drag_data_source_listener;
|
||||
struct wl_surface *drag_focus;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue