Commit 95cb47ca authored by Roman Gilg's avatar Roman Gilg

[platforms/virtual] Set raw physical size of outputs

Summary: At least one test requires the physical size to be set.

Test Plan:
Lock screen screen edges test is passing again. Without the change the corner
offset in the ScreenEdges class is not calculated correctly via the
physicalDpiX() and physicalDpiY() values of an auxilliary QWidget.

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: davidedmundson, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D15183
parent 9cf2730f
......@@ -42,6 +42,7 @@ QSize VirtualOutput::pixelSize() const
void VirtualOutput::setGeometry(const QRect &geo)
{
m_pixelSize = geo.size();
setRawPhysicalSize(m_pixelSize);
setGlobalPos(geo.topLeft());
}
......
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