Fix drag-and-drop

This commit is contained in:
emersion 2018-09-07 15:43:15 +02:00
parent 309fcf2300
commit 251a7ebc4b
3 changed files with 8 additions and 6 deletions

View file

@ -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);