From 95cb47cae2ae2f4ed156a5da83ca12757d03c52c Mon Sep 17 00:00:00 2001 From: Roman Gilg Date: Fri, 31 Aug 2018 12:49:35 +0200 Subject: [PATCH] [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 --- plugins/platforms/virtual/virtual_output.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/platforms/virtual/virtual_output.cpp b/plugins/platforms/virtual/virtual_output.cpp index f798ea9e84..05ba336604 100644 --- a/plugins/platforms/virtual/virtual_output.cpp +++ b/plugins/platforms/virtual/virtual_output.cpp @@ -42,6 +42,7 @@ QSize VirtualOutput::pixelSize() const void VirtualOutput::setGeometry(const QRect &geo) { m_pixelSize = geo.size(); + setRawPhysicalSize(m_pixelSize); setGlobalPos(geo.topLeft()); }