Subject: Re: bug#56607: 29.0.50; (setq auto-resize-tool-bars 'grow-only) has no effect (pgtk)

From: Po Lu <[email-masked]>
Date: Sun, 17 Jul 2022 13:46:59 +0800

Richard Hansen <[email-masked]> writes:

> emacs -Q
> M-: (setq auto-resize-tool-bars 'grow-only) RET
> C-s
>
> The tool bar now shows a ridiculously oversized marine life ring icon
> on the "Help" button, and the height of the tool bar has grown to
> accommodate the icon's size.
>
> C-g
>
> Expected behavior: The tool bar reverts back to how it was before C-s
> was pressed, except its height stays the same.
>
> Actual behavior: The tool bar reverts back to how it was before,
> including reverting to its original height.
>
> The continually changing tool bar height causes the windows under the
> toolbar to "bounce".  This is particularly annoying when a mouse click
> causes the tool bar to change height because Emacs interprets the
> click as a drag event (even though the mouse cursor has not moved).

`auto-resize-tool-bars' doesn't work with either of the GTK builds,
since tool bars there don't wrap at all, and their dimensions are not
under the control of Emacs.

So the solution is to stop setting that variable.