diff options
author | Half-Shot <half-shot@molrams.com> | 2015-08-20 21:27:38 +0100 |
---|---|---|
committer | Half-Shot <half-shot@molrams.com> | 2015-08-20 21:29:40 +0100 |
commit | 2a62c5c7fb71fc815663281793ba6a89d2b246ed (patch) | |
tree | 88928911011bf8c1726198a7cbed8e21bb140253 /include | |
parent | Merge branch 'master' of https://github.com/SirCmpwn/sway (diff) | |
download | sway-2a62c5c7fb71fc815663281793ba6a89d2b246ed.tar.gz sway-2a62c5c7fb71fc815663281793ba6a89d2b246ed.tar.zst sway-2a62c5c7fb71fc815663281793ba6a89d2b246ed.zip |
Basic left right move command implemented.
Diffstat (limited to 'include')
-rw-r--r-- | include/container.h | 2 | ||||
-rw-r--r-- | include/layout.h | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/container.h b/include/container.h index 186ee8b6..63529e44 100644 --- a/include/container.h +++ b/include/container.h | |||
@@ -15,6 +15,7 @@ enum swayc_types{ | |||
15 | C_TYPES, | 15 | C_TYPES, |
16 | }; | 16 | }; |
17 | 17 | ||
18 | |||
18 | enum swayc_layouts{ | 19 | enum swayc_layouts{ |
19 | L_NONE, | 20 | L_NONE, |
20 | L_HORIZ, | 21 | L_HORIZ, |
@@ -75,6 +76,7 @@ swayc_t *destroy_view(swayc_t *view); | |||
75 | swayc_t *find_container(swayc_t *container, bool (*test)(swayc_t *view, void *data), void *data); | 76 | swayc_t *find_container(swayc_t *container, bool (*test)(swayc_t *view, void *data), void *data); |
76 | void container_map(swayc_t *, void (*f)(swayc_t *, void *), void *); | 77 | void container_map(swayc_t *, void (*f)(swayc_t *, void *), void *); |
77 | 78 | ||
79 | |||
78 | // Mappings | 80 | // Mappings |
79 | void set_view_visibility(swayc_t *view, void *data); | 81 | void set_view_visibility(swayc_t *view, void *data); |
80 | 82 | ||
diff --git a/include/layout.h b/include/layout.h index 282f92ee..79241698 100644 --- a/include/layout.h +++ b/include/layout.h | |||
@@ -15,6 +15,9 @@ swayc_t *add_sibling(swayc_t *sibling, swayc_t *child); | |||
15 | swayc_t *replace_child(swayc_t *child, swayc_t *new_child); | 15 | swayc_t *replace_child(swayc_t *child, swayc_t *new_child); |
16 | swayc_t *remove_child(swayc_t *child); | 16 | swayc_t *remove_child(swayc_t *child); |
17 | 17 | ||
18 | void move_container(swayc_t* container,swayc_t* root,int direction); | ||
19 | |||
20 | |||
18 | // Layout | 21 | // Layout |
19 | void arrange_windows(swayc_t *container, int width, int height); | 22 | void arrange_windows(swayc_t *container, int width, int height); |
20 | 23 | ||