summaryrefslogtreecommitdiff
path: root/openbox/screen.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2010-09-19 11:06:49 -0400
committerDana Jansens <danakj@orodu.net>2011-01-24 14:19:22 -0500
commitd3660704f1195fb724f5c0c027bdd084824c511f (patch)
tree43b9d3a6789449086053f3453fa8c7daaa7c2226 /openbox/screen.c
parent6f92931f843f8049d27d73937977b54d5f869499 (diff)
less redundant calls to screen_update_areas() and client_move_onscreen()
Diffstat (limited to 'openbox/screen.c')
-rw-r--r--openbox/screen.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/openbox/screen.c b/openbox/screen.c
index 4d73eeac..a94347ed 100644
--- a/openbox/screen.c
+++ b/openbox/screen.c
@@ -500,11 +500,12 @@ void screen_resize(void)
if (ob_state() != OB_STATE_RUNNING)
return;
- screen_update_areas();
+ /* this calls screen_update_areas(), which we need ! */
dock_configure();
- for (it = client_list; it; it = g_list_next(it))
- client_move_onscreen(it->data, FALSE);
+ if (oldw)
+ for (it = client_list; it; it = g_list_next(it))
+ client_move_onscreen(it->data, FALSE);
}
void screen_set_num_desktops(guint num)
@@ -1458,10 +1459,8 @@ void screen_update_areas(void)
dims, 4 * screen_num_desktops);
/* the area has changed, adjust all the windows if they need it */
- for (it = onscreen; it; it = g_list_next(it)) {
- client_move_onscreen(it->data, FALSE);
+ for (it = onscreen; it; it = g_list_next(it))
client_reconfigure(it->data, FALSE);
- }
g_free(dims);
}