[gtk/wip/chergert/quartz4u: 91/142] macos: damage after invalidating



commit ffbf18ef0b4701b11b48af38cc8046db8f97c76a
Author: Christian Hergert <chergert redhat com>
Date:   Wed May 20 12:57:49 2020 -0700

    macos: damage after invalidating

 gdk/macos/gdkmacossurface.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gdk/macos/gdkmacossurface.c b/gdk/macos/gdkmacossurface.c
index ea91026d2d..775aaad30c 100644
--- a/gdk/macos/gdkmacossurface.c
+++ b/gdk/macos/gdkmacossurface.c
@@ -690,13 +690,14 @@ _gdk_macos_surface_show (GdkMacosSurface *self)
   _gdk_macos_display_clear_sorting (GDK_MACOS_DISPLAY (GDK_SURFACE (self)->display));
 
   [self->window showAndMakeKey:YES];
-  [[self->window contentView] setNeedsDisplay:YES];
 
   if (!was_mapped)
     {
       if (gdk_surface_get_mapped (GDK_SURFACE (self)))
         gdk_surface_invalidate_rect (GDK_SURFACE (self), NULL);
     }
+
+  [[self->window contentView] setNeedsDisplay:YES];
 }
 
 CGContextRef


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