Mercurial > hg > xemacs-beta
diff src/window.c @ 209:41ff10fd062f r20-4b3
Import from CVS: tag r20-4b3
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:04:58 +0200 |
parents | 850242ba4a81 |
children | 78478c60bfcd |
line wrap: on
line diff
--- a/src/window.c Mon Aug 13 10:03:54 2007 +0200 +++ b/src/window.c Mon Aug 13 10:04:58 2007 +0200 @@ -2929,10 +2929,15 @@ int pixel_adj_left = new_pixsize - old_pixsize; int div_val = old_pixsize << 1; - /* Sometimes we may get called with our old size. In that case - we don't need to do anything. */ - if (!pixel_adj_left) - return; + /* + * Previously we bailed out here if there was no size change. + * But this broke toolbar updates. If a toolbar appears or + * disappears, windows may not change size, but their top and + * left coordinates need to be updated. + * + * if (!pixel_adj_left) + * return; + */ last_pos = first = (set_height ? WINDOW_TOP (w) : WINDOW_LEFT (w)); last_old_pos = 0;