[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:
parent
9cf2730f8d
commit
95cb47cae2
1 changed files with 1 additions and 0 deletions
|
@ -42,6 +42,7 @@ QSize VirtualOutput::pixelSize() const
|
|||
void VirtualOutput::setGeometry(const QRect &geo)
|
||||
{
|
||||
m_pixelSize = geo.size();
|
||||
setRawPhysicalSize(m_pixelSize);
|
||||
setGlobalPos(geo.topLeft());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue