Last active
June 7, 2018 16:51
-
-
Save d12frosted/9cb0cc13b095ee7709f8747e2835d7a7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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