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:
Ander Conselvan de Oliveira 2012-05-29 10:58:26 +03:00 committed by Kristian Høgsberg
parent d422a733b4
commit 75a5f7476a
4 changed files with 55 additions and 34 deletions

View file

@ -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;