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:
Matthias Clasen 2013-08-11 14:53:14 -04:00
parent dfbd0c2b98
commit 87257342de

View File

@ -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"))