Some time ago, Paul Bibilo wrote...
|+
| If I run vm, then my frame expands by the width of the vm toolbar
| (which is placed on the left). When I quit vm then my scrollbar ends
| up in the same place as when vm is running, and I have about an inch
| of blank space to the left of it. If I resize the frame, then the
| scrollbar returns to the correct place.
|-
Some time ago, Jeff Miller wrote...
|+
| If I startup beta 39 with vm (xemacs-21.0-b39 -f vm), select the XEmacs
| menubar, then switch to *scratch*, I get the following odd screen.
|-
This patch fixes the problem. The problem persisted when toollbar
geometry specification (visible, location, width or whatever) was
set to different value in a buffer domain. Switching into/from such
a buffer hosed toolbar updates.
Kirill
1998-05-12 Kirill M. Katsnelson <kkm(a)kis.ru>
* toolbar.c (update_frame_toolbars): Re-layout frame windows if
toolbar geometry is suspected to change.
Index: src/toolbar.c
===================================================================
RCS file: /var/cvsroot/ntxemacs/src/toolbar.c,v
retrieving revision 1.2
diff --unified=2 -r1.2 toolbar.c
--- src/toolbar.c 1998/05/09 08:59:03 1.2
+++ src/toolbar.c 1998/05/11 17:59:34
@@ -778,4 +778,14 @@
|| !EQ (FRAME_TOOLBAR_BUFFER (f, RIGHT_TOOLBAR), buffer)))
{
+ int width, height;
+
+ /* We're not officially "in redisplay", so we still have a chance
+ to re-layout toolbars and windows. This is done here, because
+ toolbar is the only thing which currently might necesseritate
+ this layout, as it is outside any windows */
+ pixel_to_char_size (f, FRAME_PIXWIDTH (f), FRAME_PIXHEIGHT (f),
+ &width, &height);
+ change_frame_size (f, height, width, 0);
+
/* Removed the check for the minibuffer here. We handle this
more correctly now by consistently using