diff options
author | emersion <contact@emersion.fr> | 2018-09-07 15:43:15 +0200 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-09-07 15:43:15 +0200 |
commit | 251a7ebc4ba1dd24e9bc6b3cfd6883c80f429a2f (patch) | |
tree | 0c719df34d250397e9b2731c50f3ee6bb3acf38a /sway/desktop | |
parent | 309fcf23007a7c1b5c1c6da6b5ff7101312488cc (diff) | |
download | sway-251a7ebc4ba1dd24e9bc6b3cfd6883c80f429a2f.tar.xz |
Fix drag-and-drop
Diffstat (limited to 'sway/desktop')
-rw-r--r-- | sway/desktop/output.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |