aboutsummaryrefslogtreecommitdiff
path: root/sway/tree/view.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-04-06 16:16:05 -0400
committerGitHub <noreply@github.com>2018-04-06 16:16:05 -0400
commit5c31b06d88135a62bd917a61e770c8219f6d5d72 (patch)
tree4323a9130346ca4d836b0ae70c03877e13310bfc /sway/tree/view.c
parent656ef558a2a8d55cf77cbcc8ce01c861cb78ac97 (diff)
parent640232eb225058a18f20190235f679caf678e1f7 (diff)
Merge pull request #1758 from swaywm/revert-1757-boooooooxes
Revert "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 8ceb0d6c..9855c5e1 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->box.x + view->swayc->box.x;
- box->y = output->box.y + view->swayc->box.y;
+ box->x = output->x + view->swayc->x;
+ box->y = output->y + view->swayc->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->box.x == ox && view->swayc->box.y == oy) {
+ if (view->swayc->x == ox && view->swayc->y == oy) {
return;
}
view_damage_whole(view);
- view->swayc->box.x = ox;
- view->swayc->box.y = oy;
+ view->swayc->x = ox;
+ view->swayc->y = oy;
view_damage_whole(view);
}