diff options
author | 2016-10-10 20:44:09 +0200 | |
---|---|---|
committer | 2016-12-04 08:31:34 -0500 | |
commit | 6fb4b6737a793672129bb621d48652cc5e42059e (patch) | |
tree | 58ef0b90988625bc0601bfc8b73d6927036ea08c /sway/layout.c | |
parent | Merge pull request #981 from SirCmpwn/security (diff) | |
download | sway-6fb4b6737a793672129bb621d48652cc5e42059e.tar.gz sway-6fb4b6737a793672129bb621d48652cc5e42059e.tar.zst sway-6fb4b6737a793672129bb621d48652cc5e42059e.zip |
add workspace_layout to container
Add swayc_change_layout function, which changes either layout or
workspace_layout, depending on the container type.
Diffstat (limited to 'sway/layout.c')
-rw-r--r-- | sway/layout.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/layout.c b/sway/layout.c index 4f2ea09a..b37b82da 100644 --- a/sway/layout.c +++ b/sway/layout.c | |||
@@ -302,6 +302,7 @@ void move_container(swayc_t *container, enum movement_direction dir) { | |||
302 | } | 302 | } |
303 | // Change parent layout if we need to | 303 | // Change parent layout if we need to |
304 | if (parent->children->length == 1 && parent->layout != layout) { | 304 | if (parent->children->length == 1 && parent->layout != layout) { |
305 | /* swayc_change_layout(parent, layout); */ | ||
305 | parent->layout = layout; | 306 | parent->layout = layout; |
306 | continue; | 307 | continue; |
307 | } | 308 | } |