aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/tree/container.h
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-06-06 19:19:30 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-06-09 10:08:43 +1000
commitf9e6d703d298dbdee0770fd9e0c64ab2d7ac7deb (patch)
tree8c8ffd879e368aff3d749a637aabfa784800db5c /include/sway/tree/container.h
parentWIP: Atomic layout updates ground work (diff)
downloadsway-f9e6d703d298dbdee0770fd9e0c64ab2d7ac7deb.tar.gz
sway-f9e6d703d298dbdee0770fd9e0c64ab2d7ac7deb.tar.zst
sway-f9e6d703d298dbdee0770fd9e0c64ab2d7ac7deb.zip
Make main properties be the pending state
Diffstat (limited to 'include/sway/tree/container.h')
-rw-r--r--include/sway/tree/container.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h
index dd5bd47c..a8efd893 100644
--- a/include/sway/tree/container.h
+++ b/include/sway/tree/container.h
@@ -91,7 +91,9 @@ struct sway_container {
91 */ 91 */
92 size_t id; 92 size_t id;
93 93
94 struct sway_container_state pending; 94 // The pending state is the main container properties, and the current state is in the below struct.
95 // This means most places of the code can refer to the main variables (pending state) and it'll just work.
96 struct sway_container_state current;
95 97
96 char *name; // The view's title (unformatted) 98 char *name; // The view's title (unformatted)
97 char *formatted_title; // The title displayed in the title bar 99 char *formatted_title; // The title displayed in the title bar