mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
Fix a crash with scaled cursors on Wayland
We need to initialize cursor->surface.scale to 1, since we are dividing by it in _gdk_wayland_cursor_get_buffer.
This commit is contained in:
parent
dfbd0c2b98
commit
87257342de
@ -317,6 +317,7 @@ _gdk_wayland_display_get_cursor_for_name (GdkDisplay *display,
|
||||
NULL);
|
||||
private->name = g_strdup (name);
|
||||
private->serial = theme_serial;
|
||||
private->surface.scale = 1;
|
||||
|
||||
/* Blank cursor case */
|
||||
if (!name || g_str_equal (name, "blank_cursor"))
|
||||
|
Loading…
Reference in New Issue
Block a user