Merge branch 'lcrippa-gtk-3-24-patch-37647' into 'gtk-3-24'

fix gtk-shell protocol handling

See merge request GNOME/gtk!6803
This commit is contained in:
Matthias Clasen 2024-01-24 01:08:43 +00:00
commit 2b054f3edc

View File

@ -1048,8 +1048,9 @@ set_capability_setting (GdkScreen *screen,
enum gtk_shell1_capability test)
{
GdkWaylandScreen *wayland_screen = GDK_WAYLAND_SCREEN (screen);
int testbit = 1 << (test - 1);
g_value_set_boolean (value, (wayland_screen->shell_capabilities & test) == test);
g_value_set_boolean (value, (wayland_screen->shell_capabilities & testbit) == testbit);
return TRUE;
}