Bug 449993

Summary: When using a scale factor, XWayland apps are blurry from being upscaled from their 1x version
Product: [Plasma] kwin Reporter: gustohall
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: frederic.parrenin, gudvinr+kde, nate, postix
Priority: NOR Keywords: wayland
Version: 5.23.5   
Target Milestone: ---   
Platform: Flatpak   
OS: Linux   
Latest Commit: Version Fixed In: 5.26
Sentry Crash Report:
Attachments: Visual studio code showing the issue
Obsidian showing the issue

Description gustohall 2022-02-11 07:57:27 UTC
SUMMARY

Pretty much the summary. The "I think?" is because it seems to happen in web-based apps, I'm not sure what's what but I think it's an electron thing. This is all happening on my new laptop fedora 35, using wayland.

The reason I'm posting this on the KDE sub tho is because all these apps are fine on GNOME from my testing, but act up in Plasma.

I think it's something to do with how Plasma handles scaling, since this new device has a 1440p screen, and I've never had this before on 1080p and 768p screens, plus when I set the scaling in plasma to 100% nothing is blurred, but everything is zoomed out so it's not too ideal.

I'd appreciate all the help I could get on this since this device is essential for work and school.


STEPS TO REPRODUCE
1. Install any electron-based app, whether through flatpak or the package manager
2. Open it, in plasma, using wayland

OBSERVED RESULT
The fonts and icons are blurry

EXPECTED RESULT
The fonts and icons are not blurry

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 35, Plasma 5.23.5
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2
Comment 1 gustohall 2022-02-11 08:06:01 UTC
Created attachment 146570 [details]
Visual studio code showing the issue
Comment 2 gustohall 2022-02-11 08:06:34 UTC
Created attachment 146571 [details]
Obsidian showing the issue
Comment 3 Vlad Zahorodnii 2022-02-11 08:21:18 UTC
mutter and kwin/sway/weston do hidpi differently. hopefully, it will be addressed with https://invent.kde.org/plasma/kwin/-/merge_requests/1959. in meanwhile, you could enable native wayland support in vscode, e.g. 

❯ cat .config/electron-flags.conf 
--enable-features=UseOzonePlatform
--ozone-platform=wayland

or run it as `code --enable-features=UseOzonePlatform --ozone-platform=wayland`
Comment 4 gustohall 2022-02-11 09:23:05 UTC
that sucks, might use gnome in the meantime until f36 releases because these apps aren't the only ones affected by these problems and are essential to my livelihood.
Comment 5 frederic.parrenin@univ-grenoble-alpes.fr 2022-03-19 13:08:52 UTC
It happens also in VirtualBox, both the VB app in the host and the guest.
Comment 6 gudvinr+kde 2022-05-05 00:07:49 UTC
wxGTK apps are also affected by this. Despite of having Wayland support it didn't work properly until 3.1.5-ish which isn't considered stable (3.0 is).
Comment 7 Nate Graham 2022-09-09 19:19:48 UTC
This is fixed in Plasma 5.26!