<table><tr><td style="">fvogt created this revision.<br />fvogt added a reviewer: Plasma.<br />Restricted Application added a project: Plasma.<br />fvogt requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D12405">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Qt computes the scale factor relative to the primary screen. This means<br />
we can support per-screen DPI on X11 by setting QT_SCREEN_SCALE_FACTORS<br />
appropriately, while keeping Xft.dpi synced to the primary screen's DPI.<br />
This means applications which don't read QT_SCREEN_SCALE_FACTORS use the<br />
scale of the primary screen. This is a good compromise, especially for<br />
those who either need fractional scaling or can't use wayland for various<br />
reasons.</p>

<p>WIP because this doesn't track changes of the primary screen and I'm not<br />
sure how to implement this the best way. The issue is that the<br />
QT_SCREEN_SCALE_FACTORS management is not done by the backend, but only by<br />
the KCM. Ideas welcome.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>VM with multihead QXL. I can now assign a per-screen scale in the KCM<br />
and after a relogin applications scale correctly based on the screen they're on.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R104 KScreen</div></div></div><br /><div><strong>BRANCH</strong><div><div>perscreenxcb</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D12405">https://phabricator.kde.org/D12405</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>kcm/src/outputconfig.cpp<br />
kcm/src/scalingconfig.cpp<br />
kcm/src/scalingconfig.h<br />
kcm/src/widget.cpp<br />
kcm/src/widget.h</div></div></div><br /><div><strong>To: </strong>fvogt, Plasma<br /><strong>Cc: </strong>plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>