aboutsummaryrefslogtreecommitdiff
path: root/sway/tree/view.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/view.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/view.c')
-rw-r--r--sway/tree/view.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c
index 9855c5e1..8ceb0d6c 100644
--- a/sway/tree/view.c
+++ b/sway/tree/view.c
@@ -96,8 +96,8 @@ void view_damage_from(struct sway_view *view) {
static void view_get_layout_box(struct sway_view *view, struct wlr_box *box) {
struct sway_container *output = container_parent(view->swayc, C_OUTPUT);
- box->x = output->x + view->swayc->x;
- box->y = output->y + view->swayc->y;
+ box->x = output->box.x + view->swayc->box.x;
+ box->y = output->box.y + view->swayc->box.y;
box->width = view->width;
box->height = view->height;
}
@@ -216,13 +216,13 @@ void view_unmap(struct sway_view *view) {
}
void view_update_position(struct sway_view *view, double ox, double oy) {
- if (view->swayc->x == ox && view->swayc->y == oy) {
+ if (view->swayc->box.x == ox && view->swayc->box.y == oy) {
return;
}
view_damage_whole(view);
- view->swayc->x = ox;
- view->swayc->y = oy;
+ view->swayc->box.x = ox;
+ view->swayc->box.y = oy;
view_damage_whole(view);
}