Merge branch 'wayland-cursor-fix-3-24' into 'gtk-3-24'
wayland: Be more careful when loading cursors See merge request GNOME/gtk!6623
This commit is contained in:
commit
0bffedf5b8
@ -220,7 +220,7 @@ _gdk_wayland_cursor_get_buffer (GdkCursor *cursor,
|
|||||||
{
|
{
|
||||||
GdkWaylandCursor *wayland_cursor = GDK_WAYLAND_CURSOR (cursor);
|
GdkWaylandCursor *wayland_cursor = GDK_WAYLAND_CURSOR (cursor);
|
||||||
|
|
||||||
if (wayland_cursor->wl_cursor)
|
if (wayland_cursor->wl_cursor && wayland_cursor->wl_cursor->image_count > 0)
|
||||||
{
|
{
|
||||||
struct wl_cursor_image *image;
|
struct wl_cursor_image *image;
|
||||||
int cursor_scale;
|
int cursor_scale;
|
||||||
|
Loading…
Reference in New Issue
Block a user