aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-04-06 15:03:05 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2018-04-06 15:38:37 -0400
commit764489e73760534d49760af123cae46109564e86 (patch)
tree243104969dc80855d313faf5a0d360dd5508dc52 /include
parentMerge pull request #1755 from emersion/view-child-hidpi (diff)
downloadsway-764489e73760534d49760af123cae46109564e86.tar.gz
sway-764489e73760534d49760af123cae46109564e86.tar.zst
sway-764489e73760534d49760af123cae46109564e86.zip
Break everything^W^WUse wlr_box for sway_container
Diffstat (limited to 'include')
-rw-r--r--include/sway/tree/container.h10
-rw-r--r--include/sway/tree/layout.h3
2 files changed, 5 insertions, 8 deletions
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h
index 4c60530f..e7a071be 100644
--- a/include/sway/tree/container.h
+++ b/include/sway/tree/container.h
@@ -68,12 +68,10 @@ struct sway_container {
68 enum sway_container_layout prev_layout; 68 enum sway_container_layout prev_layout;
69 enum sway_container_layout workspace_layout; 69 enum sway_container_layout workspace_layout;
70 70
71 // For C_ROOT, this has no meaning 71 // For C_ROOT, this is the extents of the whole layout box.
72 // For C_OUTPUT, this is the output position in layout coordinates 72 // For C_OUTPUT, this is the output position in layout coordinates.
73 // For other types, this is the position in output-local coordinates 73 // For other types, this is the position in output-local coordinates.
74 double x, y; 74 struct wlr_box box;
75 // does not include borders or gaps.
76 double width, height;
77 75
78 list_t *children; 76 list_t *children;
79 77
diff --git a/include/sway/tree/layout.h b/include/sway/tree/layout.h
index fc5ce21f..b2b98ee4 100644
--- a/include/sway/tree/layout.h
+++ b/include/sway/tree/layout.h
@@ -61,8 +61,7 @@ enum sway_container_layout container_get_default_layout(
61 61
62void container_sort_workspaces(struct sway_container *output); 62void container_sort_workspaces(struct sway_container *output);
63 63
64void arrange_windows(struct sway_container *container, 64void arrange_windows(struct sway_container *container, int width, int height);
65 double width, double height);
66 65
67struct sway_container *container_get_in_direction(struct sway_container 66struct sway_container *container_get_in_direction(struct sway_container
68 *container, struct sway_seat *seat, enum movement_direction dir); 67 *container, struct sway_seat *seat, enum movement_direction dir);