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:
Carlos Garnacho 2014-08-21 17:27:26 +02:00
parent 84414f0381
commit ad9da99d86
2 changed files with 5 additions and 0 deletions

View File

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

View File

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