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)
This commit is contained in:
parent
580846fcdc
commit
d6cb3b4a2a
@ -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++)
|
||||
|
Loading…
Reference in New Issue
Block a user