aboutsummaryrefslogtreecommitdiff
path: root/include/sway/tree/container.h
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-04-06 16:16:05 -0400
committerGitHub <noreply@github.com>2018-04-06 16:16:05 -0400
commit5c31b06d88135a62bd917a61e770c8219f6d5d72 (patch)
tree4323a9130346ca4d836b0ae70c03877e13310bfc /include/sway/tree/container.h
parent656ef558a2a8d55cf77cbcc8ce01c861cb78ac97 (diff)
parent640232eb225058a18f20190235f679caf678e1f7 (diff)
downloadsway-5c31b06d88135a62bd917a61e770c8219f6d5d72.tar.xz
Merge pull request #1758 from swaywm/revert-1757-boooooooxes
Revert "Break everything^W^WUse wlr_box for sway_container"
Diffstat (limited to 'include/sway/tree/container.h')
-rw-r--r--include/sway/tree/container.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h
index e7a071be..4c60530f 100644
--- a/include/sway/tree/container.h
+++ b/include/sway/tree/container.h
@@ -68,10 +68,12 @@ struct sway_container {
enum sway_container_layout prev_layout;
enum sway_container_layout workspace_layout;
- // For C_ROOT, this is the extents of the whole layout box.
- // For C_OUTPUT, this is the output position in layout coordinates.
- // For other types, this is the position in output-local coordinates.
- struct wlr_box box;
+ // For C_ROOT, this has no meaning
+ // For C_OUTPUT, this is the output position in layout coordinates
+ // For other types, this is the position in output-local coordinates
+ double x, y;
+ // does not include borders or gaps.
+ double width, height;
list_t *children;