From 8c74fcbddb64afa9ac8a75562634c80379ff24df Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Dj=C3=A4rv?= Date: Sat, 2 Apr 2011 09:11:00 +0200 Subject: [PATCH] * nsterm.m (ns_update_auto_hide_menu_bar): Only for OSX 10.6 or later. Fixes: debbugs:8403 --- src/ChangeLog | 5 +++++ src/nsterm.m | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 3b9669b46a9..819ccd60f72 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2011-04-02 Jan Djärv + + * nsterm.m (ns_update_auto_hide_menu_bar): Only for OSX 10.6 or + later (Bug#8403). + 2011-04-01 Stefan Monnier Add lexical binding. diff --git a/src/nsterm.m b/src/nsterm.m index 91f0cbba585..f783bbe025f 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -583,6 +583,8 @@ ns_menu_bar_should_be_hidden (void) static void ns_update_auto_hide_menu_bar (void) { +#ifdef NS_IMPL_COCOA +#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6 BLOCK_INPUT; NSTRACE (ns_update_auto_hide_menu_bar); @@ -615,6 +617,8 @@ ns_update_auto_hide_menu_bar (void) } UNBLOCK_INPUT; +#endif +#endif } -- 2.39.2