From: Benjamin Otte Date: Sat, 4 Nov 2017 23:05:56 +0000 (+0100) Subject: wayland: Fix embarassing bug X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~23^2~874 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e484af8e9665c647a52c2457033b14c0ecd56bcc;p=gtk4.git wayland: Fix embarassing bug Yes, I did not get to test this code path until now. Because nobody uses icon surfaces, boo! --- diff --git a/gdk/wayland/gdkcursor-wayland.c b/gdk/wayland/gdkcursor-wayland.c index 925e5b1fbb..cc3b5e38a6 100644 --- a/gdk/wayland/gdkcursor-wayland.c +++ b/gdk/wayland/gdkcursor-wayland.c @@ -214,10 +214,10 @@ _gdk_wayland_cursor_get_buffer (GdkWaylandDisplay *display, surface = g_hash_table_lookup (display->cursor_surface_cache, cursor); if (surface == NULL) { - _gdk_wayland_display_create_shm_surface (display, - gdk_texture_get_width (texture), - gdk_texture_get_height (texture), - 1); + surface = _gdk_wayland_display_create_shm_surface (display, + gdk_texture_get_width (texture), + gdk_texture_get_height (texture), + 1); gdk_texture_download (texture, cairo_image_surface_get_data (surface),