data-device: Store the current drag grab

And bail out if any further start_drag() is attempted.
This commit is contained in:
Carlos Garnacho
2014-09-26 19:08:42 +02:00
parent 4b83b031bc
commit 30cc4e1d0a
2 changed files with 10 additions and 4 deletions

View File

@@ -27,12 +27,15 @@
#include "meta-wayland-types.h"
typedef struct _MetaWaylandDragGrab MetaWaylandDragGrab;
struct _MetaWaylandDataDevice
{
uint32_t selection_serial;
MetaWaylandDataSource *selection_data_source;
struct wl_listener selection_data_source_listener;
struct wl_list resource_list;
MetaWaylandDragGrab *current_grab;
};
void meta_wayland_data_device_manager_init (MetaWaylandCompositor *compositor);