Created
March 21, 2016 19:06
-
-
Save jjungnickel/f2e749e12c48436f3a6e to your computer and use it in GitHub Desktop.
Extracted patch for borderless emacs from gwydirsam/emacs-mac-borderless Raw
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
diff --git a/src/macappkit.m b/src/macappkit.m | |
index 63dfec1..a7614b6 100644 | |
--- a/src/macappkit.m | |
+++ b/src/macappkit.m | |
@@ -2326,6 +2326,16 @@ static CGRect unset_global_focus_view_frame (void); | |
@implementation EmacsWindow | |
+- (BOOL)canBecomeKeyWindow | |
+{ | |
+ return YES; | |
+} | |
+ | |
+- (BOOL)canBecomeMainWindow | |
+{ | |
+ return [self isVisible]; | |
+} | |
+ | |
- (instancetype)initWithContentRect:(NSRect)contentRect | |
styleMask:(NSUInteger)windowStyle | |
backing:(NSBackingStoreType)bufferingType | |
@@ -2680,8 +2690,9 @@ static CGRect unset_global_focus_view_frame (void); | |
else | |
{ | |
windowClass = [EmacsWindow class]; | |
- windowStyle = (NSTitledWindowMask | NSClosableWindowMask | |
- | NSMiniaturizableWindowMask | NSResizableWindowMask); | |
+ windowStyle = (NSBorderlessWindowMask | NSResizableWindowMask); | |
+ // windowStyle = (NSTitledWindowMask | NSClosableWindowMask | |
+ // | NSMiniaturizableWindowMask | NSResizableWindowMask); | |
} | |
} | |
else |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment