aboutsummaryrefslogtreecommitdiff
path: root/sway/tree/container.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-04-06 15:57:57 -0400
committerGitHub <noreply@github.com>2018-04-06 15:57:57 -0400
commit656ef558a2a8d55cf77cbcc8ce01c861cb78ac97 (patch)
tree243104969dc80855d313faf5a0d360dd5508dc52 /sway/tree/container.c
parentd447460c0153a76a0bc484bb9866cef658b3102f (diff)
parent764489e73760534d49760af123cae46109564e86 (diff)
Merge pull request #1757 from swaywm/boooooooxes
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 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;