comparison 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
comparison
equal deleted inserted replaced
208:f427b8ec4379 209:41ff10fd062f
2927 { 2927 {
2928 int last_pos, last_old_pos, pos, old_pos, first; 2928 int last_pos, last_old_pos, pos, old_pos, first;
2929 int pixel_adj_left = new_pixsize - old_pixsize; 2929 int pixel_adj_left = new_pixsize - old_pixsize;
2930 int div_val = old_pixsize << 1; 2930 int div_val = old_pixsize << 1;
2931 2931
2932 /* Sometimes we may get called with our old size. In that case 2932 /*
2933 we don't need to do anything. */ 2933 * Previously we bailed out here if there was no size change.
2934 if (!pixel_adj_left) 2934 * But this broke toolbar updates. If a toolbar appears or
2935 return; 2935 * disappears, windows may not change size, but their top and
2936 * left coordinates need to be updated.
2937 *
2938 * if (!pixel_adj_left)
2939 * return;
2940 */
2936 2941
2937 last_pos = first = (set_height ? WINDOW_TOP (w) : WINDOW_LEFT (w)); 2942 last_pos = first = (set_height ? WINDOW_TOP (w) : WINDOW_LEFT (w));
2938 last_old_pos = 0; 2943 last_old_pos = 0;
2939 2944
2940 for (child = major_kid; !NILP (child); child = c->next) 2945 for (child = major_kid; !NILP (child); child = c->next)