less redundant calls to screen_update_areas() and client_move_onscreen()

This commit is contained in:
Dana Jansens 2010-09-19 11:06:49 -04:00
parent 6f92931f84
commit d3660704f1
2 changed files with 7 additions and 6 deletions

View file

@ -551,6 +551,8 @@ void dock_configure(void)
dock->area.height += ob_rr_theme->obwidth * 2; dock->area.height += ob_rr_theme->obwidth * 2;
} }
/* screen_resize() depends on this function to call screen_update_areas(),
so if this changes, also update screen_resize(). */
screen_update_areas(); screen_update_areas();
} }

View file

@ -500,9 +500,10 @@ void screen_resize(void)
if (ob_state() != OB_STATE_RUNNING) if (ob_state() != OB_STATE_RUNNING)
return; return;
screen_update_areas(); /* this calls screen_update_areas(), which we need ! */
dock_configure(); dock_configure();
if (oldw)
for (it = client_list; it; it = g_list_next(it)) for (it = client_list; it; it = g_list_next(it))
client_move_onscreen(it->data, FALSE); client_move_onscreen(it->data, FALSE);
} }
@ -1458,10 +1459,8 @@ void screen_update_areas(void)
dims, 4 * screen_num_desktops); dims, 4 * screen_num_desktops);
/* the area has changed, adjust all the windows if they need it */ /* the area has changed, adjust all the windows if they need it */
for (it = onscreen; it; it = g_list_next(it)) { for (it = onscreen; it; it = g_list_next(it))
client_move_onscreen(it->data, FALSE);
client_reconfigure(it->data, FALSE); client_reconfigure(it->data, FALSE);
}
g_free(dims); g_free(dims);
} }