Bug 448136

Summary: Implement "ignore wayland scaling" option for XWayland apps that have custom internal scaling mechanisms
Product: [Plasma] kwin Reporter: Tornado99 <richrocksmyworld>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: wishlist CC: kde, nate, postix, toni.asensi
Priority: NOR    
Version: 5.23.5   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In:

Description Tornado99 2022-01-08 19:22:28 UTC
MATLAB (gtk2?) has its own internal scaling factor "s" which can be set to any value, such as 1, 1.25, 1.5, 2 etc. This scales all the UI elements. The font size can also be set independently.

In Wayland environment with 100% Wayland scaling on a 4K monitor, MATLAB can be configured with perfect scaling and sharp fonts simply by increasing "s", and increasing font size.

In Wayland environment with 200% Wayland scaling, both the UI and fonts are blurry as Wayland adds an extra scale factor which is not needed.

Launching non-standard toolkit apps with custom internal scaling mechanisms should have an option to ignore the Display scaling set in Plasma System settings.

https://uk.mathworks.com/matlabcentral/answers/406956-does-matlab-support-high-dpi-screens-on-linux
Comment 1 Nate Graham 2022-01-08 19:44:46 UTC
There are also games like this. In the case of these apps, it's much better to use the app-internal scaling mechanism than upscaling it in the compositor.
Comment 2 David Edmundson 2022-01-09 21:49:14 UTC
Wrap your game in gamescope before launching.

*** This bug has been marked as a duplicate of bug 389191 ***