[gtk/wip/chergert/quartz4u: 90/116] macos: update position for popup when showing



commit e0c334e2337756a8021a9e59160c3153a78c4b20
Author: Christian Hergert <chergert redhat com>
Date:   Thu Jun 4 16:55:22 2020 -0700

    macos: update position for popup when showing

 gdk/macos/gdkmacossurface.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/gdk/macos/gdkmacossurface.c b/gdk/macos/gdkmacossurface.c
index f19f8ed1e7..7927519286 100644
--- a/gdk/macos/gdkmacossurface.c
+++ b/gdk/macos/gdkmacossurface.c
@@ -700,7 +700,10 @@ _gdk_macos_surface_show (GdkMacosSurface *self)
   if (!was_mapped)
     {
       if (gdk_surface_get_mapped (GDK_SURFACE (self)))
-        gdk_surface_invalidate_rect (GDK_SURFACE (self), NULL);
+        {
+          _gdk_macos_surface_update_position (self);
+          gdk_surface_invalidate_rect (GDK_SURFACE (self), NULL);
+        }
     }
 
   [[self->window contentView] setNeedsDisplay:YES];


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