forked from AuroraMiddleware/gtk
wayland: Acquire wl_subcompositor interface
This will be needed for GDK_WINDOW_SUBSURFACE windows. https://bugzilla.gnome.org/show_bug.cgi?id=729215
This commit is contained in:
parent
84414f0381
commit
ad9da99d86
@ -177,6 +177,10 @@ gdk_registry_handle_global(void *data, struct wl_registry *registry, uint32_t id
|
||||
display_wayland->data_device_manager =
|
||||
wl_registry_bind(display_wayland->wl_registry, id,
|
||||
&wl_data_device_manager_interface, 1);
|
||||
} else if (strcmp (interface, "wl_subcompositor") == 0) {
|
||||
display_wayland->subcompositor =
|
||||
wl_registry_bind (display_wayland->wl_registry, id,
|
||||
&wl_subcompositor_interface, 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -62,6 +62,7 @@ struct _GdkWaylandDisplay
|
||||
struct gtk_shell *gtk_shell;
|
||||
struct wl_input_device *input_device;
|
||||
struct wl_data_device_manager *data_device_manager;
|
||||
struct wl_subcompositor *subcompositor;
|
||||
|
||||
struct wl_cursor_theme *cursor_theme;
|
||||
GHashTable *cursor_cache;
|
||||
|
Loading…
Reference in New Issue
Block a user