plugins/zoom: Center cursor on active screen on shortcut

BUG:435108
This commit is contained in:
David Redondo 2024-04-26 12:39:53 +02:00
parent 69b8c91655
commit 2e92fca017

View file

@ -558,7 +558,7 @@ void ZoomEffect::moveMouseToFocus()
void ZoomEffect::moveMouseToCenter()
{
const QRect r = effects->virtualScreenGeometry();
const QRect r = effects->activeScreen()->geometry();
QCursor::setPos(r.x() + r.width() / 2, r.y() + r.height() / 2);
}