all repos — openbox @ 3c38171fde2e134f93eef137d7a816338e6fd0f2

openbox fork - make it a bit more like ryudo

fallback when nothing is focused and we switch desktops!
Dana Jansens danakj@orodu.net
commit

3c38171fde2e134f93eef137d7a816338e6fd0f2

parent

e334f7b1990d30057048f554b300857fbaef2e3c

1 files changed, 4 insertions(+), 1 deletions(-)

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

@@ -434,6 +434,9 @@ if (c->frame->visible && !client_should_show(c))

frame_hide(c->frame); } } + + if (!focus_client) + focus_fallback(OB_FOCUS_FALLBACK_NOFOCUS); } static void get_row_col(guint d, guint *r, guint *c)

@@ -725,7 +728,7 @@ cols++;

if (rows * cols >= screen_num_desktops + cols) rows--; } else if (rows == 0) { - rows = screen_num_desktops / rows; + rows = screen_num_desktops / cols; if (cols * rows < screen_num_desktops) rows++; if (cols * rows >= screen_num_desktops + rows)