diff options
author | 2015-12-17 19:48:55 -0500 | |
---|---|---|
committer | 2015-12-17 19:48:55 -0500 | |
commit | f994f00d0059039d952d7dcfb72a683f303878bc (patch) | |
tree | 32c96595026c36cbb88a7c57544396b74c9128f0 /include | |
parent | Merge pull request #351 from mikkeloscar/swaygrab-default-file (diff) | |
parent | sway: insert numbered workspaces in order (diff) | |
download | sway-f994f00d0059039d952d7dcfb72a683f303878bc.tar.gz sway-f994f00d0059039d952d7dcfb72a683f303878bc.tar.zst sway-f994f00d0059039d952d7dcfb72a683f303878bc.zip |
Merge pull request #352 from progandy/workspace-numbers
Workspace numbers
Diffstat (limited to 'include')
-rw-r--r-- | include/layout.h | 4 | ||||
-rw-r--r-- | include/workspace.h | 1 |
2 files changed, 5 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 |
25 | void add_child(swayc_t *parent, swayc_t *child); | 25 | void 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 | ||
29 | void 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 |
29 | void add_floating(swayc_t *ws, swayc_t *child); | 33 | void add_floating(swayc_t *ws, swayc_t *child); |
diff --git a/include/workspace.h b/include/workspace.h index b916f715..c69ccdbb 100644 --- a/include/workspace.h +++ b/include/workspace.h | |||
@@ -10,6 +10,7 @@ extern char *prev_workspace_name; | |||
10 | char *workspace_next_name(void); | 10 | char *workspace_next_name(void); |
11 | swayc_t *workspace_create(const char*); | 11 | swayc_t *workspace_create(const char*); |
12 | swayc_t *workspace_by_name(const char*); | 12 | swayc_t *workspace_by_name(const char*); |
13 | swayc_t *workspace_by_number(const char*); | ||
13 | bool workspace_switch(swayc_t*); | 14 | bool workspace_switch(swayc_t*); |
14 | swayc_t *workspace_output_next(); | 15 | swayc_t *workspace_output_next(); |
15 | swayc_t *workspace_next(); | 16 | swayc_t *workspace_next(); |