aboutsummaryrefslogtreecommitdiff
path: root/include/layout.h
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2015-12-17 19:48:55 -0500
committerDrew DeVault <sir@cmpwn.com>2015-12-17 19:48:55 -0500
commitf994f00d0059039d952d7dcfb72a683f303878bc (patch)
tree32c96595026c36cbb88a7c57544396b74c9128f0 /include/layout.h
parent89341c0c702573065676eb5cf1ac2fcc6091eacf (diff)
parent76c520a04b09490591c8ca7f854592f2a7a50042 (diff)
Merge pull request #352 from progandy/workspace-numbers
Workspace numbers
Diffstat (limited to 'include/layout.h')
-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);
// 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);