macos: fix unmaximize opacity around edges of window

This commit is contained in:
Christian Hergert 2022-02-03 19:21:59 -08:00
parent 58b9c3a6d4
commit 8112b49c36

View File

@ -214,7 +214,14 @@ typedef NSString *CALayerContentsGravity;
* as we are leaving maximized state.
*/
if ((style_mask & NSWindowStyleMaskTitled) == 0 && [self isOpaque])
[self setOpaque:NO];
{
GdkSurface *surface = GDK_SURFACE ([self gdkSurface]);
[self setOpaque:NO];
/* Force updating of various styling, regions, etc */
_gdk_surface_update_size (surface);
}
}
-(void)windowDidMove:(NSNotification *)aNotification