Skip to content

Instantly share code, notes, and snippets.

@jmdeldin
Created July 23, 2011 10:10
Show Gist options
  • Save jmdeldin/1101261 to your computer and use it in GitHub Desktop.
Save jmdeldin/1101261 to your computer and use it in GitHub Desktop.
Fix Emacs title bar
diff --git a/src/ChangeLog b/src/ChangeLog
index 37cd344..c121bfb 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
+2011-07-11 Bob Halley <rthalley@gmail.com>
+
+ * nsterm.m (initFrameFromEmacs): In OS X 10.7, a title bar
+ is no longer implied by NSResizableWindowMask and must be
+ requested with NSTitledWindowMask.
+
2011-05-29 Paul Eggert <eggert@cs.ucla.edu>
Minor fixes prompted by GCC 4.6.0 warnings.
diff --git a/src/nsterm.m b/src/nsterm.m
index c6d990b..6f8a2b6 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -6128,7 +6128,8 @@ typedef struct
win = [[EmacsWindow alloc]
initWithContentRect: r
- styleMask: (NSResizableWindowMask |
+ styleMask: (NSTitledWindowMask |
+ NSResizableWindowMask |
NSMiniaturizableWindowMask |
NSClosableWindowMask)
backing: NSBackingStoreBuffered
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment