diff options
author | D.B <thejan.2009@gmail.com> | 2016-10-10 20:44:09 +0200 |
---|---|---|
committer | D.B <thejan.2009@gmail.com> | 2016-10-11 09:16:59 +0200 |
commit | 571321a1d84a1eb2867fbdc39f7f828aa2c64a01 (patch) | |
tree | ad61090d261ccec47efc36b19f2b7266a01c1bdc /include/sway | |
parent | wrap workspace's child into a container if needed (diff) | |
download | sway-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 'include/sway')
-rw-r--r-- | include/sway/container.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/sway/container.h b/include/sway/container.h index 5e251885..90825a49 100644 --- a/include/sway/container.h +++ b/include/sway/container.h | |||
@@ -68,6 +68,7 @@ struct sway_container { | |||
68 | enum swayc_types type; | 68 | enum swayc_types type; |
69 | enum swayc_layouts layout; | 69 | enum swayc_layouts layout; |
70 | enum swayc_layouts prev_layout; | 70 | enum swayc_layouts prev_layout; |
71 | enum swayc_layouts workspace_layout; | ||
71 | 72 | ||
72 | /** | 73 | /** |
73 | * Width and height of this container, without borders or gaps. | 74 | * Width and height of this container, without borders or gaps. |
@@ -321,4 +322,10 @@ void update_visibility(swayc_t *container); | |||
321 | */ | 322 | */ |
322 | void close_views(swayc_t *container); | 323 | void close_views(swayc_t *container); |
323 | 324 | ||
325 | /** | ||
326 | * Assign layout to a container. Needed due to workspace container specifics. | ||
327 | * Workspace always needs L_HORIZ layout. | ||
328 | */ | ||
329 | swayc_t *swayc_change_layout(swayc_t *container, enum swayc_layouts layout); | ||
330 | |||
324 | #endif | 331 | #endif |