Bug 374647 - HiDPI display gets unwanted partial scaling
Summary: HiDPI display gets unwanted partial scaling
Status: RESOLVED DOWNSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.8.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-06 18:20 UTC by Szymon Łągiewka
Modified: 2017-01-12 20:26 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
attachment-30735-0.html (375 bytes, text/html)
2017-01-07 08:12 UTC, Martin Flöser
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Szymon Łągiewka 2017-01-06 18:20:51 UTC
My screen is HiDPI - 3200x1800 on a 13.3" laptop. Scaling times 2 under Wayland look generally the same as under X - it pretty much covers everything.

The problem is when scaling is set to 1. Effectively this should mean that nothing will be scaled as it does under X. On my Wayland session - I get partial scaling, which seems to be giving me scaling by the factor even greater than 2.

What is scaled (unwanted):
Plasma elements such as panels (i.e. drop-down from system tray), krunner
Fonts in UI - i.e. system settings or dolphin. It also happens for window title panel text but not the panel itself. In result the text does not fit in the title panel.

What is not scaled (wanted):
Applications in general, i.e. Vivaldi is not informed about scaling and the UI along with websites are not being scaled. Other software I've opened to see effects: KeePassX 2, Slack, Messenger for Desktop, PhpStorm

My fonts settings are varying from 8-10. Anit-aliasing - system settings. Force DPI is unchecked.
Comment 1 Martin Flöser 2017-01-07 08:12:15 UTC
Created attachment 103249 [details]
attachment-30735-0.html

How the applications scale their UI is not under control of the Wayland compositor. What you see is how Qt scales fonts based on DPI. Unlike on X11 Qt uses the correct value. It is different to how it is on X11, but I would rather say the behavior on X11is wrong.

Anyway forcing font DPI addresses the issue.
Comment 2 Szymon Łągiewka 2017-01-12 20:26:28 UTC
I can confirm that forcing font DPI makes unscaled Plasma on HiDPI screen look tiny again.