]> code.delx.au - gnu-emacs/commit
Avoid flickering on frame creation with tool bar on OSX.
authorJan Djärv <jan.h.d@swipnet.se>
Sun, 30 Mar 2014 17:21:20 +0000 (19:21 +0200)
committerJan Djärv <jan.h.d@swipnet.se>
Sun, 30 Mar 2014 17:21:20 +0000 (19:21 +0200)
commitf9d45267c81a05c1c7782aa38a1fcc018c013683
tree0eb05e47b7340986c7db60b6b74671fc658bdca8
parentb0e04df615638ef21023420f564fcee1c9f2060d
Avoid flickering on frame creation with tool bar on OSX.

* nsmenu.m (update_frame_tool_bar): Return early if view or toolbar
is nil.  If waiting for toolbar to complete, force a redraw.

* nsterm.h (EmacsView): Add wait_for_tool_bar.

* nsterm.m (updateFrameSize:): If waiting for the tool bar and tool
bar is zero height, just return.
(initFrameFromEmacs:): Initialize wait_for_tool_bar.

Fixes: debbugs:16976
src/ChangeLog
src/nsmenu.m
src/nsterm.h
src/nsterm.m