diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-05-04 08:24:25 -0400 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-06-01 23:14:58 +1000 |
commit | f3ab895916ca1a0f004b5ceaefa90eee90676532 (patch) | |
tree | aa572c41265fae21617b13b62b1c8d5df1f2d47d /include | |
parent | Merge pull request #2081 from RedSoxFan/fix-2077 (diff) | |
download | sway-f3ab895916ca1a0f004b5ceaefa90eee90676532.tar.gz sway-f3ab895916ca1a0f004b5ceaefa90eee90676532.tar.zst sway-f3ab895916ca1a0f004b5ceaefa90eee90676532.zip |
Implement `floating enable`
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/tree/container.h | 3 | ||||
-rw-r--r-- | include/sway/tree/layout.h | 3 | ||||
-rw-r--r-- | include/sway/tree/workspace.h | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h index bb6c04a6..fa2f9286 100644 --- a/include/sway/tree/container.h +++ b/include/sway/tree/container.h | |||
@@ -76,6 +76,9 @@ struct sway_container { | |||
76 | enum sway_container_layout layout; | 76 | enum sway_container_layout layout; |
77 | enum sway_container_layout prev_layout; | 77 | enum sway_container_layout prev_layout; |
78 | 78 | ||
79 | // Saves us from searching the list of children/floating in the parent | ||
80 | bool is_floating; | ||
81 | |||
79 | // For C_ROOT, this has no meaning | 82 | // For C_ROOT, this has no meaning |
80 | // For C_OUTPUT, this is the output position in layout coordinates | 83 | // For C_OUTPUT, this is the output position in layout coordinates |
81 | // For other types, this is the position in output-local coordinates | 84 | // For other types, this is the position in output-local coordinates |
diff --git a/include/sway/tree/layout.h b/include/sway/tree/layout.h index 2e0f2abf..33d0a5d0 100644 --- a/include/sway/tree/layout.h +++ b/include/sway/tree/layout.h | |||
@@ -46,6 +46,9 @@ struct sway_container *container_add_sibling(struct sway_container *parent, | |||
46 | 46 | ||
47 | struct sway_container *container_remove_child(struct sway_container *child); | 47 | struct sway_container *container_remove_child(struct sway_container *child); |
48 | 48 | ||
49 | void container_add_floating(struct sway_container *workspace, | ||
50 | struct sway_container *child); | ||
51 | |||
49 | struct sway_container *container_replace_child(struct sway_container *child, | 52 | struct sway_container *container_replace_child(struct sway_container *child, |
50 | struct sway_container *new_child); | 53 | struct sway_container *new_child); |
51 | 54 | ||
diff --git a/include/sway/tree/workspace.h b/include/sway/tree/workspace.h index 35e1df3b..ece0ab5c 100644 --- a/include/sway/tree/workspace.h +++ b/include/sway/tree/workspace.h | |||
@@ -8,6 +8,7 @@ struct sway_view; | |||
8 | struct sway_workspace { | 8 | struct sway_workspace { |
9 | struct sway_container *swayc; | 9 | struct sway_container *swayc; |
10 | struct sway_view *fullscreen; | 10 | struct sway_view *fullscreen; |
11 | list_t *floating; | ||
11 | }; | 12 | }; |
12 | 13 | ||
13 | extern char *prev_workspace_name; | 14 | extern char *prev_workspace_name; |