D12804: Fix window frame rounding when scaling is used
Vlad Zagorodniy
noreply at phabricator.kde.org
Thu May 10 14:17:35 UTC 2018
zzag added a comment.
In D12804#260617 <https://phabricator.kde.org/D12804#260617>, @anemeth wrote:
> In D12804#260610 <https://phabricator.kde.org/D12804#260610>, @hpereiradacosta wrote:
>
> > Also: how does it work with multiple monitors ? (I see you get the info from ::primaryScreen, not for the screen the window is actually on ?
>
>
> As far as I know KWin X11 does not allow different scaling factors per monitor, so it should be fine.
> And on Wayland `QGuiApplication::primaryScreen()->logicalDotsPerInch()` is always 96 so this only affects X11
IIRC, decoration renderer sets device pixel ratio, so in theory, you should not multiply frame radius by dpr.
REPOSITORY
R31 Breeze
REVISION DETAIL
https://phabricator.kde.org/D12804
To: anemeth, #breeze, #vdg, hpereiradacosta, davidedmundson
Cc: zzag, davidedmundson, ngraham, plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20180510/7569bd7d/attachment.html>
More information about the Plasma-devel
mailing list