mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-14 14:20:21 +00:00
Merge branch 'wayland-cursor-size' into 'main'
wayland: Don't crash on cursor size 0 Closes #5700 See merge request GNOME/gtk!5721
This commit is contained in:
commit
a70b85ef76
@ -1082,6 +1082,9 @@ gdk_wayland_display_set_cursor_theme (GdkDisplay *display,
|
||||
g_assert (display_wayland);
|
||||
g_assert (display_wayland->shm);
|
||||
|
||||
if (size == 0)
|
||||
size = 24;
|
||||
|
||||
if (g_strcmp0 (name, display_wayland->cursor_theme_name) == 0 &&
|
||||
display_wayland->cursor_theme_size == size)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user