diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-09-07 11:09:02 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-07 11:09:02 -0400 |
commit | 030b5bc02455bc936a9a7fedc05c3f9b7c813098 (patch) | |
tree | a0d6ee22a377a06d5d745ef4eb170895d74e55cd /sway/desktop | |
parent | d86afdc6ed72ec03fd2fe727132ee30476b82ae0 (diff) | |
parent | 251a7ebc4ba1dd24e9bc6b3cfd6883c80f429a2f (diff) | |
download | sway-030b5bc02455bc936a9a7fedc05c3f9b7c813098.tar.xz |
Merge pull request #2603 from emersion/fix-dnd
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 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, 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); |