]> git.eshelyaron.com Git - emacs.git/commit
Make `toggle-frame-maximized' respect the dock on OS X (bug#22988).
authorAnders Lindgren <andlind@gmail.com>
Tue, 22 Mar 2016 19:18:33 +0000 (20:18 +0100)
committerAnders Lindgren <andlind@gmail.com>
Tue, 22 Mar 2016 19:18:33 +0000 (20:18 +0100)
commite643977b6b99466bfa872b61a4101d9937615876
tree90ce4ea49ababc42cd60b468e80019797bd5091b
parent38a43f1a8f26f1ec8dbb9b2981f1d98f2b2bd228
Make `toggle-frame-maximized' respect the dock on OS X (bug#22988).

* src/nsterm.m (ns_screen_margins): New function.
(ns_screen_margins_ignoring_hidden_dock): New function.
(ns_menu_bar_height): Reimplement in terms of `ns_screen_margins'.
([EmacsWindow zoom:]): Take all screen margins (except those
originating from a hidden dock) into account.
src/nsterm.m