Skip to content

Instantly share code, notes, and snippets.

@navilan
Created July 17, 2011 15:59
Show Gist options
  • Save navilan/1087723 to your computer and use it in GitHub Desktop.
Save navilan/1087723 to your computer and use it in GitHub Desktop.
Emacs 24 Fullscreen for lion patch
--- 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;
@navilan
Copy link
Author

navilan commented Jul 17, 2011

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

@navilan
Copy link
Author

navilan commented Jul 17, 2011

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