[gtk+] wayland: Fix embarassing bug



commit e484af8e9665c647a52c2457033b14c0ecd56bcc
Author: Benjamin Otte <otte redhat com>
Date:   Sun Nov 5 00:05:56 2017 +0100

    wayland: Fix embarassing bug
    
    Yes, I did not get to test this code path until now. Because nobody uses
    icon surfaces, boo!

 gdk/wayland/gdkcursor-wayland.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gdk/wayland/gdkcursor-wayland.c b/gdk/wayland/gdkcursor-wayland.c
index 925e5b1..cc3b5e3 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),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]