nix-config/patches/no-titlebar-rounded-corners.patch

26 lines
845 B
Diff

diff --git a/src/nsterm.m b/src/nsterm.m
index 44979c7c04e..234a647bade 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -9022,6 +9022,7 @@ - (instancetype) initWithEmacsFrame: (struct frame *) f
styleMask = 0;
else
styleMask = (NSWindowStyleMaskTitled
+ | NSFullSizeContentViewWindowMask
| NSWindowStyleMaskResizable
| NSWindowStyleMaskMiniaturizable
| NSWindowStyleMaskClosable);
@@ -9109,6 +9110,12 @@ - (instancetype) initWithEmacsFrame: (struct frame *) f
#endif
}
+ [self setTitlebarAppearsTransparent:YES];
+ [self setTitleVisibility:NSWindowTitleHidden];
+ [[self standardWindowButton:NSWindowCloseButton] setHidden:YES];
+ [[self standardWindowButton:NSWindowMiniaturizeButton] setHidden:YES];
+ [[self standardWindowButton:NSWindowZoomButton] setHidden:YES];
+
return self;
}