mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-21 14:24:19 +00:00
wayland: Bump GTK_SHELL1 version to 2
Otherwise, we can't negotiate the latest version with the compositor, making the compositor use v1 of the protocol and pretty much ignoring all the edge constraints work.
This commit is contained in:
parent
33c24f7380
commit
01911b5ecd
@ -85,6 +85,8 @@
|
|||||||
|
|
||||||
#define MIN_SYSTEM_BELL_DELAY_MS 20
|
#define MIN_SYSTEM_BELL_DELAY_MS 20
|
||||||
|
|
||||||
|
#define GTK_SHELL1_VERSION 2
|
||||||
|
|
||||||
static void _gdk_wayland_display_load_cursor_theme (GdkWaylandDisplay *display_wayland);
|
static void _gdk_wayland_display_load_cursor_theme (GdkWaylandDisplay *display_wayland);
|
||||||
|
|
||||||
G_DEFINE_TYPE (GdkWaylandDisplay, gdk_wayland_display, GDK_TYPE_DISPLAY)
|
G_DEFINE_TYPE (GdkWaylandDisplay, gdk_wayland_display, GDK_TYPE_DISPLAY)
|
||||||
@ -374,7 +376,7 @@ gdk_registry_handle_global (void *data,
|
|||||||
display_wayland->gtk_shell =
|
display_wayland->gtk_shell =
|
||||||
wl_registry_bind(display_wayland->wl_registry, id,
|
wl_registry_bind(display_wayland->wl_registry, id,
|
||||||
>k_shell1_interface,
|
>k_shell1_interface,
|
||||||
1);
|
GTK_SHELL1_VERSION);
|
||||||
_gdk_wayland_screen_set_has_gtk_shell (display_wayland->screen);
|
_gdk_wayland_screen_set_has_gtk_shell (display_wayland->screen);
|
||||||
display_wayland->gtk_shell_version = version;
|
display_wayland->gtk_shell_version = version;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user