From d6cb3b4a2a4d4ce69f74ef768521ee9d4d311fa2 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Sun, 2 Mar 2025 23:13:02 +0200 Subject: [PATCH] wayland: Fix none cursor check We should skip going through the look up table if the cursor name is "none", i.e. when g_str_equal() returns true or 1. (cherry picked from commit 7ee2e50dc4f0898f7d56d67017c36414618f2e82) --- gdk/wayland/gdkdevice-wayland.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c index ea9c380955..0b0c966225 100644 --- a/gdk/wayland/gdkdevice-wayland.c +++ b/gdk/wayland/gdkdevice-wayland.c @@ -466,7 +466,7 @@ _gdk_wayland_cursor_get_shape (GdkCursor *cursor, cursor_name = _gdk_wayland_cursor_get_name (cursor); if (cursor_name == NULL || - g_str_equal (cursor_name, "none") == 0) + g_str_equal (cursor_name, "none")) return 0; for (i = 0; i < G_N_ELEMENTS (shape_map); i++)