From 251a7ebc4ba1dd24e9bc6b3cfd6883c80f429a2f Mon Sep 17 00:00:00 2001 From: emersion Date: Fri, 7 Sep 2018 15:43:15 +0200 Subject: Fix drag-and-drop --- sway/desktop/output.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sway/desktop') diff --git a/sway/desktop/output.c b/sway/desktop/output.c index c30e52a1..0dbb88b8 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, int sw = surface->current.width; int sh = surface->current.height; - double _sx = sx, _sy = sy; + double _sx = sx + surface->sx; + double _sy = sy + surface->sy; rotate_child_position(&_sx, &_sy, sw, sh, data->width, data->height, data->rotation); -- cgit v1.2.3