aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/output.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r--sway/desktop/output.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c
index 7e9f7b7e..e49c4cca 100644
--- a/sway/desktop/output.c
+++ b/sway/desktop/output.c
@@ -80,7 +80,8 @@ static bool get_surface_box(struct surface_iterator_data *data,
80 int sw = surface->current.width; 80 int sw = surface->current.width;
81 int sh = surface->current.height; 81 int sh = surface->current.height;
82 82
83 double _sx = sx, _sy = sy; 83 double _sx = sx + surface->sx;
84 double _sy = sy + surface->sy;
84 rotate_child_position(&_sx, &_sy, sw, sh, data->width, data->height, 85 rotate_child_position(&_sx, &_sy, sw, sh, data->width, data->height,
85 data->rotation); 86 data->rotation);
86 87