Skip to content

Instantly share code, notes, and snippets.

@d12frosted
Created June 7, 2018 17:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save d12frosted/70ae08838a264289288f5c17867963e5 to your computer and use it in GitHub Desktop.
Save d12frosted/70ae08838a264289288f5c17867963e5 to your computer and use it in GitHub Desktop.
From 2724d26e5f6cc8bfa9c9ca86d35e3df396bcd2ba Mon Sep 17 00:00:00 2001
From: Boris Buliga <boris@d12frosted.io>
Date: Thu, 7 Jun 2018 20:11:34 +0300
Subject: [PATCH] allow to resize undecorated frame
---
src/nsterm.m | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/nsterm.m b/src/nsterm.m
index c8ae31abc0..c5c46d0000 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -425,11 +425,11 @@ - (NSColor *)colorUsingDefaultColorSpace
/* These flags will be OR'd or XOR'd with the NSWindow's styleMask
property depending on what we're doing. */
-#define FRAME_DECORATED_FLAGS (NSWindowStyleMaskTitled \
- | NSWindowStyleMaskResizable \
- | NSWindowStyleMaskMiniaturizable \
- | NSWindowStyleMaskClosable)
-#define FRAME_UNDECORATED_FLAGS NSWindowStyleMaskBorderless
+#define FRAME_UNDECORATED_FLAGS (NSWindowStyleMaskTitled \
+ | NSWindowStyleMaskResizable \
+ | NSWindowStyleMaskMiniaturizable \
+ | NSWindowStyleMaskClosable)
+#define FRAME_DECORATED_FLAGS NSWindowStyleMaskBorderless
/* TODO: get rid of need for these forward declarations */
static void ns_condemn_scroll_bars (struct frame *f);
--
2.17.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment