<table><tr><td style="">davidedmundson created this revision.<br />davidedmundson added a reviewer: Plasma.<br />Restricted Application added a project: KWin.<br />Restricted Application added subscribers: KWin, kwin, plasma-devel.
</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/D8504" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Under wayland we support high DPI putting by putting a separation<br />
between the logical co-ordinate system and the resolution of rendered<br />
assets.</p>
<p>I didn't include window decorations in the previous wayland scaling<br />
patchset. They were drawn them at a standard resolution, which is<br />
implicitly scaled up.</p>
<p>This uses the Qt scaling, meaning oxygen and breeze (and others) get<br />
perfect high DPI support with zero client changes.</p>
<p>Like the window scaling this handles any combination of a 2x scaled<br />
decoration being rendered on a 1x screen or vice versa.</p>
<p>CCBUG: 384765</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>export KWIN_COMPOSE=Q<br />
Had two screens of different scales<br />
It was the right size on both (as before)<br />
Was super-sharp on the fancy screen</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R108 KWin</div></div></div><br /><div><strong>BRANCH</strong><div><div>scaled_decs_qpainter</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D8504" rel="noreferrer">https://phabricator.kde.org/D8504</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>decorations/decorationrenderer.cpp<br />
plugins/scenes/qpainter/scene_qpainter.cpp</div></div></div><br /><div><strong>To: </strong>davidedmundson, Plasma<br /><strong>Cc: </strong>plasma-devel, kwin, KWin, bwowk, ZrenBot, progwolff, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol, mart<br /></div>