wayland: Retrieve the data device manager object

The data device manager is a global object that provides the support
infrastructure around data devices. These data device objects are the basis
for handling drag and drop as well as selections in Wayland.
This commit is contained in:
Rob Bradford 2011-12-12 13:56:25 +00:00
parent 32c9251b1e
commit aea95c8efc
2 changed files with 5 additions and 0 deletions

View File

@ -140,6 +140,10 @@ gdk_display_handle_global(struct wl_display *display, uint32_t id,
input = wl_display_bind(display, id, &wl_input_device_interface);
_gdk_wayland_device_manager_add_device (gdk_display->device_manager,
input);
} else if (strcmp(interface, "wl_data_device_manager") == 0) {
display_wayland->data_device_manager =
wl_display_bind(display, id,
&wl_data_device_manager_interface);
}
}

View File

@ -76,6 +76,7 @@ struct _GdkDisplayWayland
struct wl_shell *shell;
struct wl_output *output;
struct wl_input_device *input_device;
struct wl_data_device_manager *data_device_manager;
GSource *event_source;
EGLDisplay egl_display;
EGLContext egl_context;