mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 14:10:30 +00:00
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:
parent
32c9251b1e
commit
aea95c8efc
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user