Bug 497984 - Fractional scaling: some apps with mono and some with wine, have a UI zone spacing display problem (It works fine in Gnome)
Summary: Fractional scaling: some apps with mono and some with wine, have a UI zone sp...
Status: REOPENED
Alias: None
Product: kwin
Classification: Plasma
Component: xwayland (show other bugs)
Version: 6.2.4
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-28 14:10 UTC by Mark B
Modified: 2025-01-04 04:42 UTC (History)
2 users (show)

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


Attachments
gmkvextract with 150% fractional scaling (67.82 KB, image/jpeg)
2024-12-28 14:10 UTC, Mark B
Details
useac3to with 150% fractional scaling (89.07 KB, image/jpeg)
2024-12-28 14:11 UTC, Mark B
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark B 2024-12-28 14:10:36 UTC
Created attachment 176927 [details]
gmkvextract with 150% fractional scaling

SUMMARY
Please look at the 2 screenshots to see the problem.

Some apps have UI spacing rendering bugs with 150% fractional scaling in 4k, i.ex:
1. gmkvextractgui exe with mono, (available here: https://sourceforge.net/projects/gmkvextractgui/files/v2.7.0/)
2. useac3to with wine (available here: https://forum.doom9.org/showthread.php?t=145574 , download here: https://www.sendspace.com/file/inpv7i)

BUT: with the fractional scaling in Gnome it displays properly (but is a little blurry).

STEPS TO REPRODUCE
1. set 150% scaling in display settings
2. run gmkvextractgui winth mono or useac3to with wine

OBSERVED RESULT
App UI spacing problems.

EXPECTED RESULT
Proper app UI spacing. (like with Gnome, where is works properly... but a little blurry).

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: kernel 6.12
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.9.0
Qt Version: 6.8.1
Comment 1 Mark B 2024-12-28 14:11:19 UTC
Created attachment 176928 [details]
useac3to with 150% fractional scaling
Comment 2 Mark B 2024-12-28 14:17:42 UTC
To add:

useac3to with wine: I have set winecfg to 144 ppp, which wasn't needed in Gnome (which displays it properly).

So this has perhaps to do with wine. But, for gmkvextractgui exe with mono this is not the case.
Comment 3 Zamundaaa 2024-12-28 15:35:15 UTC
Gnome doesn't allow X11 apps to scale themselves. If you want the same in Plasma, you can set legacy applications to be scaled by the system in display settings.
You can report the apps not scaling properly by themselves to the relevant apps / Wine.
Comment 4 Mark B 2024-12-29 16:00:43 UTC
(In reply to Zamundaaa from comment #3)
> Gnome doesn't allow X11 apps to scale themselves. If you want the same in
> Plasma, you can set legacy applications to be scaled by the system in
> display settings.

No, what you are talking about is what I reported in bug 497982, which is a different problem, and doesn't work as you say (it worked a few months ago, so something broke it). 

This bug is about UI zone spacing problems with mono apps. -> look at the screenshot of gmkvextract.

> You can report the apps not scaling properly by themselves to the relevant
> apps / Wine.

Forget the app with the wine problem (as I said above, it's perhaps a wine problem as I used the scaling in wine).

But look at the app run with mono. It was already reported to the developer a long time ago, and they said it's a scaling problem that has nothing to do with C#. 

When the kde scaling was working properly a few month ago (now it doesn't scale at all), the app was scaling but the UI zones spacing problem was still there.

1. On windows it works properly
2. This is not run with wine, but with mono.

So the only thing you could perhaps confirm, is that this is a bug with mono. If this is the case, please do so and I will report it there.

Thanks.
Comment 5 Mark B 2024-12-29 16:03:33 UTC
But:

1. the mono app works properly without scaling
2. it scales properly in windows

-> the problem is with the kde scaling.