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



commit d696dbdc231cbd8bc0f1dde7471d6b2bfce2aadc
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]