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:
@ -177,6 +177,10 @@ gdk_registry_handle_global(void *data, struct wl_registry *registry, uint32_t id
|
|||||||
display_wayland->data_device_manager =
|
display_wayland->data_device_manager =
|
||||||
wl_registry_bind(display_wayland->wl_registry, id,
|
wl_registry_bind(display_wayland->wl_registry, id,
|
||||||
&wl_data_device_manager_interface, 1);
|
&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 gtk_shell *gtk_shell;
|
||||||
struct wl_input_device *input_device;
|
struct wl_input_device *input_device;
|
||||||
struct wl_data_device_manager *data_device_manager;
|
struct wl_data_device_manager *data_device_manager;
|
||||||
|
struct wl_subcompositor *subcompositor;
|
||||||
|
|
||||||
struct wl_cursor_theme *cursor_theme;
|
struct wl_cursor_theme *cursor_theme;
|
||||||
GHashTable *cursor_cache;
|
GHashTable *cursor_cache;
|
||||||
|
|||||||
Reference in New Issue
Block a user