<table><tr><td style="">davidedmundson added a comment.
</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/D12804">View Revision</a></tr></table><br /><div><div><blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>And in that function qreal newScale = screens()->scale(m_screen); gets the value from here: <a href="https://github.com/KDE/kwin/blob/master/screens.cpp#L114" class="remarkup-link" target="_blank" rel="noreferrer">https://github.com/KDE/kwin/blob/master/screens.cpp#L114</a><br />
You can see that this function just returns 1</p></blockquote>

<p>The method is virtual. It definitely is not always 1.</p>

<blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>We already have a workaround in Breeze for this in some parts.</p></blockquote>

<p>That code you link to is not related to scaling at all. Its normalising a viewport on a canvas to always be between 1 and 20.</p>

<hr class="remarkup-hr" />

<p>However, there are some confusions so to back up a bit.</p>

<p>On X11 kwin does not use scaling at all. There is the old horrible thing where things are bigger if fonts are bigger. <br />
On wayland we do proper scaling, which is why it works correctly</p>

<p>It's confusing when you say "when scaling is used" as you're actually referring to when we're not scaling - and doing the legacy thing.</p>

<p>I'm only the maintainer of when scaling is used. I don't like the other mode existing as it means we have two competing scaling systems at once which super complicates my stuff..but as a patch for that mode it does look kinda right.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R31 Breeze</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D12804">https://phabricator.kde.org/D12804</a></div></div><br /><div><strong>To: </strong>anemeth, Breeze, VDG, hpereiradacosta, davidedmundson<br /><strong>Cc: </strong>zzag, davidedmundson, ngraham, plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>