forked from AuroraMiddleware/gtk
gdk/wayland: Don't make gtk_shell1 v2 mandatory
It may result in a protocol error on older mutters, as GTK+ will invariably request a higher version than what's available. Make GTK+ also accept v1 if it's all the compositor has got.
This commit is contained in:
parent
49aada63ee
commit
ab5f02771a
@ -376,7 +376,7 @@ gdk_registry_handle_global (void *data,
|
||||
display_wayland->gtk_shell =
|
||||
wl_registry_bind(display_wayland->wl_registry, id,
|
||||
>k_shell1_interface,
|
||||
GTK_SHELL1_VERSION);
|
||||
MIN (version, GTK_SHELL1_VERSION));
|
||||
_gdk_wayland_screen_set_has_gtk_shell (display_wayland->screen);
|
||||
display_wayland->gtk_shell_version = version;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user