summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar progandy <code@progandy>2015-12-18 01:01:02 +0100
committerLibravatar progandy <code@progandy>2015-12-18 01:22:07 +0100
commit76c520a04b09490591c8ca7f854592f2a7a50042 (patch)
tree32c96595026c36cbb88a7c57544396b74c9128f0 /include
parentsway: enable workspace selection by number (diff)
downloadsway-76c520a04b09490591c8ca7f854592f2a7a50042.tar.gz
sway-76c520a04b09490591c8ca7f854592f2a7a50042.tar.zst
sway-76c520a04b09490591c8ca7f854592f2a7a50042.zip
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 ...
Diffstat (limited to 'include')
-rw-r--r--include/layout.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/layout.h b/include/layout.h
index 62e4c202..b7731031 100644
--- a/include/layout.h
+++ b/include/layout.h
@@ -24,6 +24,10 @@ int index_child(const swayc_t *child);
24// parent must be of type C_WORKSPACE or C_CONTAINER 24// parent must be of type C_WORKSPACE or C_CONTAINER
25void add_child(swayc_t *parent, swayc_t *child); 25void add_child(swayc_t *parent, swayc_t *child);
26 26
27// Adds child to parent at index, if parent has no focus, it is set to child
28// parent must be of type C_WORKSPACE or C_CONTAINER
29void insert_child(swayc_t *parent, swayc_t *child, int index);
30
27// Adds child as floating window to ws, if there is no focus it is set to child. 31// Adds child as floating window to ws, if there is no focus it is set to child.
28// ws must be of type C_WORKSPACE 32// ws must be of type C_WORKSPACE
29void add_floating(swayc_t *ws, swayc_t *child); 33void add_floating(swayc_t *ws, swayc_t *child);