plugins/outputlocator: show physical size in output locator
Make sure the effect shows the same sizes as the KScreen KCM.
This commit is contained in:
parent
bd88801de4
commit
d377b5cdab
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ void OutputLocatorEffect::show()
|
||||||
const auto screens = effects->screens();
|
const auto screens = effects->screens();
|
||||||
for (const auto screen : screens) {
|
for (const auto screen : screens) {
|
||||||
auto scene = new OffscreenQuickScene();
|
auto scene = new OffscreenQuickScene();
|
||||||
scene->setSource(m_qmlUrl, {{QStringLiteral("outputName"), outputName(screen)}, {QStringLiteral("resolution"), screen->geometry().size()}, {QStringLiteral("scale"), screen->scale()}});
|
scene->setSource(m_qmlUrl, {{QStringLiteral("outputName"), outputName(screen)}, {QStringLiteral("resolution"), screen->pixelSize()}, {QStringLiteral("scale"), screen->scale()}});
|
||||||
QRectF geometry(0, 0, scene->rootItem()->implicitWidth(), scene->rootItem()->implicitHeight());
|
QRectF geometry(0, 0, scene->rootItem()->implicitWidth(), scene->rootItem()->implicitHeight());
|
||||||
geometry.moveCenter(screen->geometry().center());
|
geometry.moveCenter(screen->geometry().center());
|
||||||
scene->setGeometry(geometry.toRect());
|
scene->setGeometry(geometry.toRect());
|
||||||
|
|
Loading…
Reference in a new issue