Last active
March 21, 2016 18:49
-
-
Save jjungnickel/5de200a04483cea1155e to your computer and use it in GitHub Desktop.
Extracted patch for borderless emacs from gwydirsam/emacs-mac-borderless
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 a7614b6..63dfec1 100644 | |
--- a/src/macappkit.m | |
+++ b/src/macappkit.m | |
@@ -2326,16 +2326,6 @@ 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 | |
@@ -2690,9 +2680,8 @@ static CGRect unset_global_focus_view_frame (void); | |
else | |
{ | |
windowClass = [EmacsWindow class]; | |
+ 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