Commit d593f24d authored by Marco Martin's avatar Marco Martin
Browse files

fix thumbnails positioning

to have the scene position of the thumbnail, you need
item->mapToScene(QPointF(0,0)); and not add to that its parent-relative position
parent 3efedf51
......@@ -536,7 +536,7 @@ void Scene::paintWindowThumbnails(Scene::Window *w, QRegion region, qreal opacit
if (!item->window()) {
continue;
}
const QPointF point = item->mapToScene(item->position());
const QPointF point = item->mapToScene(QPointF(0,0));
qreal x = point.x() + w->x() + (item->width() - size.width())/2;
qreal y = point.y() + w->y() + (item->height() - size.height()) / 2;
x -= thumb->x();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment