diff options
| author | Dana Jansens <danakj@orodu.net> | 2011-10-15 21:04:21 -0400 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2011-10-16 18:51:52 -0400 |
| commit | 8412fb0297ce30cdbbada464ddfb18508ace39ad (patch) | |
| tree | 584ed380d0d8b0aab45329434d14f3d8886af814 /openbox | |
| parent | 0f18d0624db0729a67276b12e6073b48889edc21 (diff) | |
Hear screen resizes when they don't change the root window (cloning)
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/screen.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/openbox/screen.c b/openbox/screen.c index f7d39fb5..91bbb4e7 100644 --- a/openbox/screen.c +++ b/openbox/screen.c @@ -480,7 +480,6 @@ void screen_shutdown(gboolean reconfig) void screen_resize(void) { - static gint oldw = 0, oldh = 0; gint w, h; GList *it; gulong geometry[2]; @@ -488,10 +487,6 @@ void screen_resize(void) w = WidthOfScreen(ScreenOfDisplay(obt_display, ob_screen)); h = HeightOfScreen(ScreenOfDisplay(obt_display, ob_screen)); - if (w == oldw && h == oldh) return; - - oldw = w; oldh = h; - /* Set the _NET_DESKTOP_GEOMETRY hint */ screen_physical_size.width = geometry[0] = w; screen_physical_size.height = geometry[1] = h; @@ -504,9 +499,8 @@ void screen_resize(void) /* this calls screen_update_areas(), which we need ! */ dock_configure(); - if (oldw) - for (it = client_list; it; it = g_list_next(it)) - client_move_onscreen(it->data, FALSE); + for (it = client_list; it; it = g_list_next(it)) + client_move_onscreen(it->data, FALSE); } void screen_set_num_desktops(guint num) |
