summaryrefslogtreecommitdiff
path: root/sway/handlers.c
diff options
context:
space:
mode:
authorD.B <[email protected]>2016-10-10 20:44:09 +0200
committerD.B <[email protected]>2016-10-11 09:16:59 +0200
commit571321a1d84a1eb2867fbdc39f7f828aa2c64a01 (patch)
treead61090d261ccec47efc36b19f2b7266a01c1bdc /sway/handlers.c
parent0ddc4279d1f4e6e161c36eae31fa32c950ad0c71 (diff)
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.
Diffstat (limited to 'sway/handlers.c')
-rw-r--r--sway/handlers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/handlers.c b/sway/handlers.c
index 48117287..75f2d5a6 100644
--- a/sway/handlers.c
+++ b/sway/handlers.c
@@ -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;
}