From 764489e73760534d49760af123cae46109564e86 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 6 Apr 2018 15:03:05 -0400 Subject: Break everything^W^WUse wlr_box for sway_container --- sway/tree/container.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sway/tree/container.c') diff --git a/sway/tree/container.c b/sway/tree/container.c index ab8363bc..04fcee81 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->width = 0; - swayc->height = 0; + swayc->box.width = 0; + swayc->box.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->x; - double view_sy = oy - swayc->y; + double view_sx = ox - swayc->box.x; + double view_sy = oy - swayc->box.y; double _sx, _sy; struct wlr_surface *_surface; -- cgit v1.2.3