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:
D.B 2016-10-10 20:44:09 +02:00
parent 0ddc4279d1
commit 571321a1d8
7 changed files with 35 additions and 16 deletions

View file

@ -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;
}