]> git.eshelyaron.com Git - emacs.git/commit
Fix NS toolbar again (bug#50534)
authorAlan Third <alan@idiocy.org>
Sun, 26 Sep 2021 10:12:48 +0000 (11:12 +0100)
committerAlan Third <alan@idiocy.org>
Mon, 27 Sep 2021 10:00:30 +0000 (11:00 +0100)
commit86bf8afa45f8d8fe19c82a9351ca445bc6f0e12e
treef34ed0d181ca604f8b4d98089fa556a344561655
parent3d2d7e8ea235a13543ed475836f8f7ea4c88520e
Fix NS toolbar again (bug#50534)

* src/nsmenu.m (free_frame_tool_bar): Remove toolbar.
(update_frame_tool_bar_1): New function.
(update_frame_tool_bar): Move most of the functionality to
update_frame_tool_bar_1.
* src/nsterm.h: Definitions of functions and methods.
* src/nsterm.m (ns_update_begin):
([EmacsView windowDidEnterFullScreen]):
([EmacsView windowDidExitFullScreen]): We no longer need to reset the
toolbar visibility as that's done when we create the new fullscreen
window.
([EmacsWindow initWithEmacsFrame:fullscreen:screen:]): Move the check
for undecorated frames into createToolbar:.
([EmacsWindow createToolbar:]): Check whether a toolbar should be
created, and run the toolbar update immediately.
src/nsmenu.m
src/nsterm.h
src/nsterm.m