aboutsummaryrefslogtreecommitdiff
path: root/sway/tree/container.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-04-06 16:13:26 -0400
committerGitHub <noreply@github.com>2018-04-06 16:13:26 -0400
commit640232eb225058a18f20190235f679caf678e1f7 (patch)
tree4323a9130346ca4d836b0ae70c03877e13310bfc /sway/tree/container.c
parent656ef558a2a8d55cf77cbcc8ce01c861cb78ac97 (diff)
Revert "Break everything^W^WUse wlr_box for sway_container"
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r--sway/tree/container.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index 04fcee81..ab8363bc 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -333,8 +333,8 @@ struct sway_container *container_view_create(struct sway_container *sibling,
// Setup values
swayc->sway_view = sway_view;
swayc->name = title ? strdup(title) : NULL;
- swayc->box.width = 0;
- swayc->box.height = 0;
+ swayc->width = 0;
+ swayc->height = 0;
if (sibling->type == C_WORKSPACE) {
// Case of focused workspace, just create as child of it
@@ -418,8 +418,8 @@ struct sway_container *container_at(struct sway_container *parent,
soutput->sway_output->wlr_output);
double ox = lx - output_box->x;
double oy = ly - output_box->y;
- double view_sx = ox - swayc->box.x;
- double view_sy = oy - swayc->box.y;
+ double view_sx = ox - swayc->x;
+ double view_sy = oy - swayc->y;
double _sx, _sy;
struct wlr_surface *_surface;