all repos — openbox @ 8412fb0297ce30cdbbada464ddfb18508ace39ad

openbox fork - make it a bit more like ryudo

Hear screen resizes when they don't change the root window (cloning)
Dana Jansens danakj@orodu.net
commit

8412fb0297ce30cdbbada464ddfb18508ace39ad

parent

0f18d0624db0729a67276b12e6073b48889edc21

1 files changed, 2 insertions(+), 8 deletions(-)

jump to
M openbox/screen.copenbox/screen.c

@@ -480,17 +480,12 @@ }

void screen_resize(void) { - static gint oldw = 0, oldh = 0; gint w, h; GList *it; gulong geometry[2]; 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;

@@ -504,9 +499,8 @@

/* 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)