mirror of
https://github.com/swaywm/sway.git
synced 2025-11-02 09:01:40 -05:00
add workspace_layout to container
Add swayc_change_layout function, which changes either layout or workspace_layout, depending on the container type.
This commit is contained in:
parent
5778c59a2f
commit
6fb4b6737a
7 changed files with 33 additions and 25 deletions
|
|
@ -68,6 +68,7 @@ struct sway_container {
|
|||
enum swayc_types type;
|
||||
enum swayc_layouts layout;
|
||||
enum swayc_layouts prev_layout;
|
||||
enum swayc_layouts workspace_layout;
|
||||
|
||||
/**
|
||||
* Width and height of this container, without borders or gaps.
|
||||
|
|
@ -321,4 +322,10 @@ void update_visibility(swayc_t *container);
|
|||
*/
|
||||
void close_views(swayc_t *container);
|
||||
|
||||
/**
|
||||
* Assign layout to a container. Needed due to workspace container specifics.
|
||||
* Workspace always needs L_HORIZ layout.
|
||||
*/
|
||||
swayc_t *swayc_change_layout(swayc_t *container, enum swayc_layouts layout);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue