summaryrefslogtreecommitdiffstats
path: root/sway/tree/view.c
diff options
context:
space:
mode:
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) {
96static void view_get_layout_box(struct sway_view *view, struct wlr_box *box) { 96static void view_get_layout_box(struct sway_view *view, struct wlr_box *box) {
97 struct sway_container *output = container_parent(view->swayc, C_OUTPUT); 97 struct sway_container *output = container_parent(view->swayc, C_OUTPUT);
98 98
99 box->x = output->box.x + view->swayc->box.x; 99 box->x = output->x + view->swayc->x;
100 box->y = output->box.y + view->swayc->box.y; 100 box->y = output->y + view->swayc->y;
101 box->width = view->width; 101 box->width = view->width;
102 box->height = view->height; 102 box->height = view->height;
103} 103}
@@ -216,13 +216,13 @@ void view_unmap(struct sway_view *view) {
216} 216}
217 217
218void view_update_position(struct sway_view *view, double ox, double oy) { 218void view_update_position(struct sway_view *view, double ox, double oy) {
219 if (view->swayc->box.x == ox && view->swayc->box.y == oy) { 219 if (view->swayc->x == ox && view->swayc->y == oy) {
220 return; 220 return;
221 } 221 }
222 222
223 view_damage_whole(view); 223 view_damage_whole(view);
224 view->swayc->box.x = ox; 224 view->swayc->x = ox;
225 view->swayc->box.y = oy; 225 view->swayc->y = oy;
226 view_damage_whole(view); 226 view_damage_whole(view);
227} 227}
228 228