This doesn't give us appropriate results if we use the window delegate.
Instead, we need to adjust the frame at the same time we change the
style mask so that we end up in the same location.
is_opaque = (([self styleMask] & NSWindowStyleMaskTitled) != 0);
if (was_fullscreen != is_fullscreen)
- _gdk_macos_surface_update_fullscreen_state (gdk_surface);
+ {
+ if (was_fullscreen)
+ [self setFrame:lastUnfullscreenFrame display:NO];
+
+ _gdk_macos_surface_update_fullscreen_state (gdk_surface);
+ }
if (was_opaque != is_opaque)
{
-(void)windowWillExitFullScreen:(NSNotification *)aNotification
{
- [self setFrame:lastUnfullscreenFrame display:NO];
}
-(void)windowDidExitFullScreen:(NSNotification *)aNotification