Created
July 23, 2011 10:10
-
-
Save jmdeldin/1101261 to your computer and use it in GitHub Desktop.
Fix Emacs title bar
This file contains hidden or 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/ChangeLog b/src/ChangeLog | |
index 37cd344..c121bfb 100644 | |
--- a/src/ChangeLog | |
+++ b/src/ChangeLog | |
@@ -1,3 +1,9 @@ | |
+2011-07-11 Bob Halley <[email protected]> | |
+ | |
+ * 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 <[email protected]> | |
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