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.
This commit is contained in:
Christian Hergert 2020-11-24 12:39:19 -08:00
parent 617d12fd77
commit a020c901ba

View File

@ -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 &&