aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ChangeLog2
-rw-r--r--src/nsterm.m9
2 files changed, 6 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index af5dbb8924d..07af64ab1a1 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -4,6 +4,8 @@
4 hide toolbar (Bug#15388). 4 hide toolbar (Bug#15388).
5 (windowDidEnterFullScreen:): If presentation options are zero, 5 (windowDidEnterFullScreen:): If presentation options are zero,
6 set them here (Bug#15388). 6 set them here (Bug#15388).
7 (ns_update_auto_hide_menu_bar): Remove runtime check.
8 Don't auto hide dock unless menubar is also auto hidden.
7 9
82013-10-05 Xue Fuqiao <xfq.free@gmail.com> 102013-10-05 Xue Fuqiao <xfq.free@gmail.com>
9 11
diff --git a/src/nsterm.m b/src/nsterm.m
index be660d99e8a..696d379206e 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -633,9 +633,7 @@ ns_update_auto_hide_menu_bar (void)
633 633
634 NSTRACE (ns_update_auto_hide_menu_bar); 634 NSTRACE (ns_update_auto_hide_menu_bar);
635 635
636 if (NSApp != nil 636 if (NSApp != nil && [NSApp isActive])
637 && [NSApp isActive]
638 && [NSApp respondsToSelector:@selector(setPresentationOptions:)])
639 { 637 {
640 // Note, "setPresentationOptions" triggers an error unless the 638 // Note, "setPresentationOptions" triggers an error unless the
641 // application is active. 639 // application is active.
@@ -644,10 +642,11 @@ ns_update_auto_hide_menu_bar (void)
644 if (menu_bar_should_be_hidden != ns_menu_bar_is_hidden) 642 if (menu_bar_should_be_hidden != ns_menu_bar_is_hidden)
645 { 643 {
646 NSApplicationPresentationOptions options 644 NSApplicationPresentationOptions options
647 = NSApplicationPresentationAutoHideDock; 645 = NSApplicationPresentationDefault;
648 646
649 if (menu_bar_should_be_hidden) 647 if (menu_bar_should_be_hidden)
650 options |= NSApplicationPresentationAutoHideMenuBar; 648 options |= NSApplicationPresentationAutoHideMenuBar
649 | NSApplicationPresentationAutoHideDock;
651 650
652 [NSApp setPresentationOptions: options]; 651 [NSApp setPresentationOptions: options];
653 652