[gtk: 6/7] GdkX11DragSurface: set visible state and invalidate on present



commit fed071ca96752f77cbe6a9b0627361b83b881717
Author: Alexander Larsson <alexl redhat com>
Date:   Thu May 14 14:33:57 2020 +0200

    GdkX11DragSurface: set visible state and invalidate on present
    
    Without this we won't actually draw the surface.

 gdk/x11/gdksurface-x11.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/gdk/x11/gdksurface-x11.c b/gdk/x11/gdksurface-x11.c
index 19f8911f91..9353e01f9b 100644
--- a/gdk/x11/gdksurface-x11.c
+++ b/gdk/x11/gdksurface-x11.c
@@ -5128,7 +5128,10 @@ gdk_x11_drag_surface_present (GdkDragSurface *drag_surface,
   GdkSurface *surface = GDK_SURFACE (drag_surface);
 
   gdk_x11_surface_toplevel_resize (surface, width, height);
+  gdk_synthesize_surface_state (surface, GDK_SURFACE_STATE_WITHDRAWN, 0);
+  _gdk_surface_update_viewable (surface);
   gdk_x11_surface_show (surface, FALSE);
+  gdk_surface_invalidate_rect (surface, NULL);
 
   return TRUE;
 }


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