[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
This commit is contained in:
Roman Gilg 2018-08-31 12:49:35 +02:00
parent 9cf2730f8d
commit 95cb47cae2

View file

@ -42,6 +42,7 @@ QSize VirtualOutput::pixelSize() const
void VirtualOutput::setGeometry(const QRect &geo)
{
m_pixelSize = geo.size();
setRawPhysicalSize(m_pixelSize);
setGlobalPos(geo.topLeft());
}