Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
From de7a046b4585db2d7cb054157f39bac608b04034 Mon Sep 17 00:00:00 2001
From: Boris Buliga <boris@d12frosted.io>
Date: Thu, 7 Jun 2018 08:59:13 +0300
Subject: [PATCH 1/1] allow to resize undecorated frame
Signed-off-by: Boris Buliga <boris@d12frosted.io>
---
src/nsterm.m | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/nsterm.m b/src/nsterm.m
index c8ae31abc0..6f402eb965 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -429,7 +429,8 @@ - (NSColor *)colorUsingDefaultColorSpace
| NSWindowStyleMaskResizable \
| NSWindowStyleMaskMiniaturizable \
| NSWindowStyleMaskClosable)
-#define FRAME_DECORATED_FLAGS (NSWindowStyleMaskTitled \
- | NSWindowStyleMaskResizable \
- | NSWindowStyleMaskMiniaturizable \
- | NSWindowStyleMaskClosable)
-#define FRAME_UNDECORATED_FLAGS NSWindowStyleMaskBorderless
+#define FRAME_DECORATED_FLAGS NSWindowStyleMaskBorderless
+#define FRAME_UNDECORATED_FLAGS (NSWindowStyleMaskTitled \
+ | NSWindowStyleMaskResizable \
+ | NSWindowStyleMaskMiniaturizable \
+ | NSWindowStyleMaskClosable)
/* 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