summaryrefslogtreecommitdiffstats
path: root/sway/handlers.c
diff options
context:
space:
mode:
authorLibravatar D.B <thejan.2009@gmail.com>2016-10-10 20:44:09 +0200
committerLibravatar D.B <thejan.2009@gmail.com>2016-10-11 09:16:59 +0200
commit571321a1d84a1eb2867fbdc39f7f828aa2c64a01 (patch)
treead61090d261ccec47efc36b19f2b7266a01c1bdc /sway/handlers.c
parentwrap workspace's child into a container if needed (diff)
downloadsway-571321a1d84a1eb2867fbdc39f7f828aa2c64a01.tar.gz
sway-571321a1d84a1eb2867fbdc39f7f828aa2c64a01.tar.zst
sway-571321a1d84a1eb2867fbdc39f7f828aa2c64a01.zip
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) {
344 } else { 344 } else {
345 if (focused->type == C_WORKSPACE && 345 if (focused->type == C_WORKSPACE &&
346 /* focused->children->length == 0 && */ 346 /* focused->children->length == 0 && */
347 (focused->layout == L_TABBED || focused->layout == L_STACKED)) { 347 (focused->workspace_layout == L_TABBED || focused->workspace_layout == L_STACKED)) {
348 // will wrap the view in a container later on 348 // will wrap the view in a container later on
349 encapsulate_view = true; 349 encapsulate_view = true;
350 } 350 }