From 5de743572ed0d41ab881816c06bc918c23419886 Mon Sep 17 00:00:00 2001 From: lorenzo crippa Date: Wed, 24 Jan 2024 01:08:43 +0000 Subject: [PATCH] fix gtk-shell protocol handling --- gdk/wayland/gdkscreen-wayland.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gdk/wayland/gdkscreen-wayland.c b/gdk/wayland/gdkscreen-wayland.c index c53f00a88b..9aec01b0b6 100644 --- a/gdk/wayland/gdkscreen-wayland.c +++ b/gdk/wayland/gdkscreen-wayland.c @@ -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; }