mirror of
https://github.com/swaywm/sway.git
synced 2025-11-12 13:29:56 -05:00
Tabbed and stacked layout
This commit is contained in:
parent
7efa9ab34a
commit
ec7ff769c7
6 changed files with 254 additions and 80 deletions
10
sway/focus.c
10
sway/focus.c
|
|
@ -141,9 +141,17 @@ bool set_focused_container(swayc_t *c) {
|
|||
// set focus if view_focus is unlocked
|
||||
if (!locked_view_focus) {
|
||||
wlc_view_focus(p->handle);
|
||||
update_view_border(p);
|
||||
if (p->parent->layout != L_TABBED
|
||||
&& p->parent->layout != L_STACKED) {
|
||||
update_view_border(p);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// rearrange if parent container is tabbed/stacked
|
||||
if (p->parent->layout == L_TABBED || p->parent->layout == L_STACKED) {
|
||||
arrange_windows(p->parent, -1, -1);
|
||||
}
|
||||
} else if (p->type == C_WORKSPACE) {
|
||||
// remove previous focus if view_focus is unlocked
|
||||
if (!locked_view_focus) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue