mirror of
https://github.com/swaywm/sway.git
synced 2025-11-01 22:58:41 -04:00
sway: insert numbered workspaces in order
fixes #308 Ordered by number ascending, with insert before same numbers. Workspaces without numbers are appended at the end of the list. Example order: 1 2:named 3:the_second 3:the_first 9 FIRST_NAME SECOND_NAME ...
This commit is contained in:
parent
8f1ac1ef2c
commit
76c520a04b
2 changed files with 23 additions and 1 deletions
|
|
@ -24,6 +24,10 @@ int index_child(const swayc_t *child);
|
|||
// parent must be of type C_WORKSPACE or C_CONTAINER
|
||||
void add_child(swayc_t *parent, swayc_t *child);
|
||||
|
||||
// Adds child to parent at index, if parent has no focus, it is set to child
|
||||
// parent must be of type C_WORKSPACE or C_CONTAINER
|
||||
void insert_child(swayc_t *parent, swayc_t *child, int index);
|
||||
|
||||
// Adds child as floating window to ws, if there is no focus it is set to child.
|
||||
// ws must be of type C_WORKSPACE
|
||||
void add_floating(swayc_t *ws, swayc_t *child);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue