]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't force auto hide dock when hide menu changes.
authorJan Djärv <jan.h.d@swipnet.se>
Sun, 6 Oct 2013 15:59:11 +0000 (17:59 +0200)
committerJan Djärv <jan.h.d@swipnet.se>
Sun, 6 Oct 2013 15:59:11 +0000 (17:59 +0200)
(ns_update_auto_hide_menu_bar): Remove runtime check.
Don't auto hide dock unless menubar is also auto hidden.

src/ChangeLog
src/nsterm.m

index af5dbb8924d3e151d1673775921329cabefe02a7..07af64ab1a1175a0fc0b149b8239937cdb25f0eb 100644 (file)
@@ -4,6 +4,8 @@
        hide toolbar (Bug#15388).
        (windowDidEnterFullScreen:): If presentation options are zero,
        set them here (Bug#15388).
+       (ns_update_auto_hide_menu_bar): Remove runtime check.
+       Don't auto hide dock unless menubar is also auto hidden.
 
 2013-10-05  Xue Fuqiao  <xfq.free@gmail.com>
 
index be660d99e8ae86afc2797a16bde7a9682684cc98..696d379206e27917395a5d763ed99cd12cd44352 100644 (file)
@@ -633,9 +633,7 @@ ns_update_auto_hide_menu_bar (void)
 
   NSTRACE (ns_update_auto_hide_menu_bar);
 
-  if (NSApp != nil
-      && [NSApp isActive]
-      && [NSApp respondsToSelector:@selector(setPresentationOptions:)])
+  if (NSApp != nil && [NSApp isActive])
     {
       // Note, "setPresentationOptions" triggers an error unless the
       // application is active.
@@ -644,10 +642,11 @@ ns_update_auto_hide_menu_bar (void)
       if (menu_bar_should_be_hidden != ns_menu_bar_is_hidden)
         {
           NSApplicationPresentationOptions options
-            = NSApplicationPresentationAutoHideDock;
+            = NSApplicationPresentationDefault;
 
           if (menu_bar_should_be_hidden)
-            options |= NSApplicationPresentationAutoHideMenuBar;
+            options |= NSApplicationPresentationAutoHideMenuBar
+              | NSApplicationPresentationAutoHideDock;
 
           [NSApp setPresentationOptions: options];