Created
July 17, 2011 15:59
-
-
Save navilan/1087723 to your computer and use it in GitHub Desktop.
Emacs 24 Fullscreen for lion patch
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
--- nsterm.m.patched 2011-07-17 21:25:41.000000000 +0530 | |
+++ nsterm.m 2011-07-17 21:25:44.000000000 +0530 | |
@@ -5881,6 +5881,13 @@ | |
-(NSWindow *)toggleFullscreen { | |
+ | |
+ if ([super respondsToSelector: @selector(toggleFullScreen:)]) { | |
+ [super toggleFullScreen:self]; | |
+ return self; | |
+ } | |
+ | |
+ | |
BOOL isFullscreen = [[self className] isEqualToString:@"EmacsFullWindow"]; | |
NSWindow *win; | |
@@ -5890,7 +5897,7 @@ | |
[w setContentView:[f contentView]]; | |
[w makeKeyAndOrderFront:nil]; | |
- | |
+/Users/lvfp/build/emacs/src/nsterm.m.patched | |
[f close]; | |
win = w; |
There are some issues when you come back from fullscreen - nothing a simple resize wouldn't fix.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This patch can be applied on top of https://github.com/downloads/typester/emacs/feature-fullscreen.patch to make it behave like a first class fullscreen window in Lion