[gtk/wip/chergert/gdk-macos-for-master: 2/2] macos: place above transient-for when presenting




commit 9b9fb4d7a33ad95b1ab8946d406cc08f60230c92
Author: Christian Hergert <chergert redhat com>
Date:   Wed Dec 2 10:20:07 2020 -0800

    macos: place above transient-for when presenting
    
    We need to re-attach to the transient-for window whenever we present or
    we risk getting placed behind the window by the display server. Apparently
    that setting does not persist across a hide of the NSWindow.

 gdk/macos/gdkmacostoplevelsurface.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gdk/macos/gdkmacostoplevelsurface.c b/gdk/macos/gdkmacostoplevelsurface.c
index 05d88ba94f..7af4725b35 100644
--- a/gdk/macos/gdkmacostoplevelsurface.c
+++ b/gdk/macos/gdkmacostoplevelsurface.c
@@ -100,6 +100,8 @@ _gdk_macos_toplevel_surface_present (GdkToplevel       *toplevel,
   g_assert (GDK_IS_MACOS_TOPLEVEL_SURFACE (self));
   g_assert (GDK_IS_MACOS_WINDOW (nswindow));
 
+  _gdk_macos_toplevel_surface_attach_to_parent (self);
+
   style_mask = [nswindow styleMask];
 
   monitor = gdk_display_get_monitor_at_surface (display, surface);


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