mirror of
https://github.com/swaywm/sway.git
synced 2025-11-10 13:29:51 -05:00
add workspace_layout, ensure ws is always L_HORIZ
Add swayc_change_layout function, which changes either layout or workspace_layout, depending on the container type. Workspace being always L_HORIZ makes this much more i3-compatible.
This commit is contained in:
parent
0ddc4279d1
commit
571321a1d8
7 changed files with 35 additions and 16 deletions
|
|
@ -344,7 +344,7 @@ static bool handle_view_created(wlc_handle handle) {
|
|||
} else {
|
||||
if (focused->type == C_WORKSPACE &&
|
||||
/* focused->children->length == 0 && */
|
||||
(focused->layout == L_TABBED || focused->layout == L_STACKED)) {
|
||||
(focused->workspace_layout == L_TABBED || focused->workspace_layout == L_STACKED)) {
|
||||
// will wrap the view in a container later on
|
||||
encapsulate_view = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue