Bug 448136 - Implement "ignore wayland scaling" option for XWayland apps that have custom internal scaling mechanisms
Summary: Implement "ignore wayland scaling" option for XWayland apps that have custom ...
Status: RESOLVED DUPLICATE of bug 389191
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.23.5
Platform: Manjaro Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-08 19:22 UTC by Tornado99
Modified: 2022-01-09 21:49 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***