aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/output.c
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-09-07 11:09:02 -0400
committerLibravatar GitHub <noreply@github.com>2018-09-07 11:09:02 -0400
commit030b5bc02455bc936a9a7fedc05c3f9b7c813098 (patch)
treea0d6ee22a377a06d5d745ef4eb170895d74e55cd /sway/desktop/output.c
parentMerge pull request #2600 from RyanDwyer/fix-workspace-switching (diff)
parentFix drag-and-drop (diff)
downloadsway-030b5bc02455bc936a9a7fedc05c3f9b7c813098.tar.gz
sway-030b5bc02455bc936a9a7fedc05c3f9b7c813098.tar.zst
sway-030b5bc02455bc936a9a7fedc05c3f9b7c813098.zip
Merge pull request #2603 from emersion/fix-dnd
Fix drag-and-drop
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