fallback when nothing is focused and we switch desktops!
This commit is contained in:
parent
e334f7b199
commit
3c38171fde
1 changed files with 4 additions and 1 deletions
|
@ -434,6 +434,9 @@ void screen_set_desktop(guint num)
|
||||||
frame_hide(c->frame);
|
frame_hide(c->frame);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!focus_client)
|
||||||
|
focus_fallback(OB_FOCUS_FALLBACK_NOFOCUS);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void get_row_col(guint d, guint *r, guint *c)
|
static void get_row_col(guint d, guint *r, guint *c)
|
||||||
|
@ -725,7 +728,7 @@ void screen_update_layout()
|
||||||
if (rows * cols >= screen_num_desktops + cols)
|
if (rows * cols >= screen_num_desktops + cols)
|
||||||
rows--;
|
rows--;
|
||||||
} else if (rows == 0) {
|
} else if (rows == 0) {
|
||||||
rows = screen_num_desktops / rows;
|
rows = screen_num_desktops / cols;
|
||||||
if (cols * rows < screen_num_desktops)
|
if (cols * rows < screen_num_desktops)
|
||||||
rows++;
|
rows++;
|
||||||
if (cols * rows >= screen_num_desktops + rows)
|
if (cols * rows >= screen_num_desktops + rows)
|
||||||
|
|
Loading…
Reference in a new issue