]> git.eshelyaron.com Git - emacs.git/commitdiff
* nsterm.m (windowDidEnterFullScreen:): setPresentationOptions only
authorJan Djärv <jan.h.d@swipnet.se>
Mon, 7 Oct 2013 20:00:25 +0000 (22:00 +0200)
committerJan Djärv <jan.h.d@swipnet.se>
Mon, 7 Oct 2013 20:00:25 +0000 (22:00 +0200)
on >= 10.7.

src/ChangeLog
src/nsterm.m

index 909a8a253176419adc621081805938be69cb37c6..8e22e4f7cf1c6c89a0a7c13eb926fdd706f26431 100644 (file)
@@ -1,3 +1,8 @@
+2013-10-07  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * nsterm.m (windowDidEnterFullScreen:): setPresentationOptions only
+       on >= 10.7.
+
 2013-10-07  Dmitry Antipov  <dmantipov@yandex.ru>
 
        * insdel.c (insert_from_gap): Prefer ptrdiff_t to int where needed.
index 696d379206e27917395a5d763ed99cd12cd44352..f166aba2e1a4a47a0d09e5ed14f9324717f4329e 100644 (file)
@@ -6129,6 +6129,7 @@ if (cols > 0 && rows > 0)
     {
       BOOL tbar_visible = FRAME_EXTERNAL_TOOL_BAR (emacsframe) ? YES : NO;
 #ifdef NS_IMPL_COCOA
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_7
       unsigned val = (unsigned)[NSApp presentationOptions];
 
       // OSX 10.7 bug fix, the menu won't appear without this.
@@ -6143,6 +6144,7 @@ if (cols > 0 && rows > 0)
 
           [NSApp setPresentationOptions: options];
         }
+#endif
 #endif
       [toolbar setVisible:tbar_visible];
     }