]> git.eshelyaron.com Git - emacs.git/commit
Introduce ns-auto-hide-menu-bar to hide menubar for Emacs frames.
authorJan Djärv <jan.h.d@swipnet.se>
Sun, 27 Mar 2011 10:36:44 +0000 (12:36 +0200)
committerJan Djärv <jan.h.d@swipnet.se>
Sun, 27 Mar 2011 10:36:44 +0000 (12:36 +0200)
commitf0a1382af3afa31708d3ce2f4c28bce61565aada
tree3496ce73efe0ae5a747377d5154265f10b64bed9
parent5c380ffb17f2fb6f22d9f24a7732b7e4a1e0cd52
Introduce ns-auto-hide-menu-bar to hide menubar for Emacs frames.
Code by Anders Lindgren.

* nsterm.m (ns_menu_bar_is_hidden): New variable.
(ns_constrain_all_frames, ns_menu_bar_should_be_hidden)
(ns_update_auto_hide_menu_bar): New functions.
(ns_update_begin): Call ns_update_auto_hide_menu_bar.
(applicationDidBecomeActive): Call ns_update_auto_hide_menu_bar and
ns_constrain_all_frames.
(constrainFrameRect): Return at once if ns_menu_bar_should_be_hidden.
(syms_of_nsterm): DEFVAR ns-auto-hide-menu-bar, init to Qnil.
src/ChangeLog
src/nsterm.m