summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Hergert <chergert@redhat.com>2020-11-24 12:39:19 -0800
committerChristian Hergert <chergert@redhat.com>2020-12-01 16:19:04 -0800
commita020c901ba2e52e6c8e12551910061037a2c2180 (patch)
treed03c78ea4006406abc01700f95cb06f23d767baf
parent617d12fd77a0627ece7816123878b04e4dd87cad (diff)
downloadgtk+-a020c901ba2e52e6c8e12551910061037a2c2180.tar.gz
macos: treat some toplevel NSWindow like document windows
This makes the window animate in by the window manager like other application windows on macOS. Currently ignored for transient windows.
-rw-r--r--gdk/macos/gdkmacostoplevelsurface.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdk/macos/gdkmacostoplevelsurface.c b/gdk/macos/gdkmacostoplevelsurface.c
index a9a6488419..05d88ba94f 100644
--- a/gdk/macos/gdkmacostoplevelsurface.c
+++ b/gdk/macos/gdkmacostoplevelsurface.c
@@ -174,6 +174,8 @@ _gdk_macos_toplevel_surface_present (GdkToplevel *toplevel,
}
else
{
+ [nswindow setAnimationBehavior:NSWindowAnimationBehaviorDocumentWindow];
+
if (!self->decorated &&
!GDK_MACOS_SURFACE (self)->did_initial_present &&
GDK_SURFACE (self)->x == 0 &&