mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-15 21:20:09 +00:00
Merge branch 'fix-x11-cursor-crash' into 'master'
x11: Only update cursors if we have any Closes #2308 See merge request GNOME/gtk!1249
This commit is contained in:
commit
9a5ec33d61
@ -305,6 +305,9 @@ gdk_x11_display_set_cursor_theme (GdkDisplay *display,
|
||||
if (size > 0)
|
||||
XcursorSetDefaultSize (xdisplay, size);
|
||||
|
||||
if (GDK_X11_DISPLAY (display)->cursors == NULL)
|
||||
return;
|
||||
|
||||
g_hash_table_iter_init (&iter, GDK_X11_DISPLAY (display)->cursors);
|
||||
while (g_hash_table_iter_next (&iter, &cursor, &xcursor))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user