https://bugs.kde.org/show_bug.cgi?id=508375

            Bug ID: 508375
           Summary: Add an option for Xwayland apps to be exempt from
                    scaling (use case in desc.)
    Classification: Plasma
           Product: kwin
      Version First 6.4.4
       Reported In:
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: xwayland
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

SUMMARY
I am proposing a 3rd option under the settings of "Display Configuration >
Legacy applications (X11)" called "Exempt from scaling" and I have a use case
for it based on my subpar experience with the other 2 options. 

Its meaning is pretty self-explanatory, apps running in the wayland session
using the Xwayland compatibility would not get any scaling applied to them,
even when wayland clients are fractionally scaled.

Now about the use case. I am using 2 1080p monitors, 1 external and 1 internal
to my laptop. The external one has DPI that doesn't require any scaling and is
kept at 100%, while the laptop screen is 125%. 

At this point I'm facing a dilemma, because if I use the "Apply scaling
themselves option" Xwayland apps see the external monitor as 2400x1350, which
causes all sorts of problems as each Xwayland app behaves in its own way. 
Some render at the higher resolution automatically and don't have an option to
change it, causing them to perform poorly on my laptop, many games fortunately
do have an option to use a different resolution, but even there is a slight
performance decrease for some reason. I understand the technical reasoning for
this behavior, the way scaling of Xwayland apps is done across monitors, I just
don't think it's an ideal solution for this specific use case. 
The other option I have is "Scaled by system", which solves the issues on my
external monitor, but makes the apps blurry on my laptop's screen. This also
isn't an ideal solution.
Currently I just have both of my screens at 100%, because I see no other viable
option, even if it's not fun looking at smaller screen elements on the laptop.

My proposed option would be a simple middle ground, where the few remaining
Xwayland apps would just not be scaled on my 125% scaled laptops screen, but
they wouldn't be blurry either and my external monitor wouldn't suffer
performance issues with them. 

STEPS TO REPRODUCE
1. Have 2 1080p monitors
2. Set one to 100% scale and the other to 125%
3. Observe the behavior of Xwayland apps under the current 2 options "Display
Configuration > Legacy applications (X11)"
4. Try with games running with Proton that don't allow for changing resolution
and use MangoHud to verify the resolution they're running at. These are the
most impacted apps. Also VirtualBox is a great example.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.4.4
KDE Frameworks Version: 6.17.0
Qt Version: 6.9.1
Kernel Version: 6.16.0-7-cachyos (64-bit)
Graphics Platform: Wayland
Processors: 16 × 11th Gen Intel® Core™ i7-11800H @ 2.30GHz
Memory: 32 GiB of RAM (31.0 GiB usable)
Graphics Processor 1: Intel® UHD Graphics
Graphics Processor 2: NVIDIA GeForce RTX 3060 Laptop GPU

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to