Subject: bug#16976: 24.3.50; Flickering during frame creation for the NS-port with toolbar-mode enabled

From: Darren Hoo <[email-masked]>
Date: Mon, 31 Mar 2014 10:14:48 +0800

"Jan D." <[email-masked]> writes:

> Hello.
>
> Eli Zaretskii skrev 2014-03-29 20:42:
>>> Date: Sat, 29 Mar 2014 18:52:45 +0100
>>> From: "Jan D." <[email-masked]>
>>> CC: [email-masked], [email-masked]
>>>
>>> It seems the clearing is done because of an expose.
>>
>> Yes, that was my second suspect.
>>
>
> I have checked in a fix in trunk that avoids redrawing until the tool
> bar is up to date.  Please try it.
>

The fix has problem when tool-bar is disabled at startup, ie, the
window won't change its size accordingly upon the frame resizing.

step to reproduce:

$ open Emacs.app --args -Q \
       -eval "(custom-set-variable'(tool-bar-mode nil))"

then try to resize the frame you'll see that the size of the buffer
window, the echo area all stay unchanged.