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

            Bug ID: 502390
           Summary: Wrong screen resolution for XWayland clients on
                    multi-monitor setups with mixed resolution displays
    Classification: Plasma
           Product: kwin
           Version: unspecified
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: xwayland
          Assignee: kwin-bugs-n...@kde.org
          Reporter: openmind...@gmail.com
  Target Milestone: ---

Created attachment 179989
  --> https://bugs.kde.org/attachment.cgi?id=179989&action=edit
systemsettings settings

SUMMARY
I noticed a wierd behaviour of XWayland app[s] when certain conditions are met:
1. Wayland Plasma session is running (up to 6.3.4 are affected, dev branch not
tested but should be the same)
2. Legacy applications (X11): "Apply scaling themselves" is selected as a
scaling preference.
3. Have dual or more monitor setup with both monitors having different
resolution. In my case, it's 3072x1920 (laptop) and 1920x1080 (external) ones.
4. XWayland app[s] run on the external monitor have its resilution effectively
doubled then downscaled, resulting in severe fps loss (but looks good).
Selecting native (real) resolution in app's settings makes it run much more
smoothly, but its interface becomes blurred and unavailable (nothing happens
when I click on what is supposed to be an app's button, dropdown menu,
radiobutton, etc).

STEPS TO REPRODUCE
1. Have Wayland, at least 2 monitors with not equal resolution (I guess HiDPI +
a regular FHD will do)
2. Launch XWayland app supposed to work in full-screen mode
3. Scratch your head in wonders

OBSERVED RESULT
App's interface is not responding (unreachable, unclickable)

EXPECTED RESULT
Plasma (KWin or what else is to blame for this) not messing with non-HiDPI
monitor resolution. Let it be the default one. Or launch a separate xwayland
instance for each monitor / process run on such monitor, if possible.

SOFTWARE/OS VERSIONS
Windows: there it works btw
macOS: there be krakens
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.3

ADDITIONAL INFORMATION
I guess it has already been discussed here:
https://bugs.kde.org/show_bug.cgi?id=459185
Xrandr shows doubled resolution for FHD monitor (DP-1):
$ xrandr                                                                       
                      0 (55.686s)
Screen 0: minimum 16 x 16, current 6912 x 2160, maximum 32767 x 32767
eDP-1 connected 3072x1920+0+0 (normal left inverted right x axis y axis) 312mm
x 195mm
   3072x1920    119.98*+
   2048x1536    119.95  
   1920x1440    119.97  
   1600x1200    119.82  
   1440x1080    119.92  
   1400x1050    119.90  
   1280x1024    119.83  
   1280x960     119.89  
   1152x864     119.77  
   1024x768     119.80  
   800x600      119.85  
   640x480      119.52  
   320x240      117.34  
   2560x1600    119.93  
   1920x1200    119.90  
   1680x1050    119.89  
   1440x900     119.94  
   1280x800     119.85  
   1152x720     119.73  
   960x600      119.74  
   928x580      119.55  
   800x500      119.47  
   768x480      119.71  
   720x480      119.65  
   640x400      119.64  
   320x200      117.55  
   2880x1620    119.95  
   2560x1440    120.00  
   2048x1152    119.96  
   1920x1080    119.93  
   1600x900     119.95  
   1368x768     119.83  
   1280x720     119.86  
   1024x576     119.85  
   864x486      119.69  
   720x400      119.54  
   640x350      119.24  
DP-1 connected primary 3840x2160+3072+0 (normal left inverted right x axis y
axis) 510mm x 290mm
   3840x2160     59.98*+
   2048x1536     59.95  
   1920x1440     59.97  
   1600x1200     59.87  
   1440x1080     59.99  
   1400x1050     59.98  
   1280x1024     59.89  
   1280x960      59.94  
   1152x864      59.96  
   1024x768      59.92  
   800x600       59.86  
   640x480       59.38  
   320x240       59.29  
   2560x1600     59.99  
   1920x1200     59.88  
   1680x1050     59.95  
   1440x900      59.89  
   1280x800      59.81  
   1152x720      59.97  
   960x600       59.63  
   928x580       59.88  
   800x500       59.50  
   768x480       59.90  
   720x480       59.71  
   640x400       59.95  
   320x200       58.14  
   3200x1800     59.96  
   2880x1620     59.96  
   2560x1440     59.96  
   2048x1152     59.90  
   1920x1080     59.96  
   1600x900      59.95  
   1368x768      59.88  
   1280x720      59.86  
   1024x576      59.90  
   864x486       59.92  
   720x400       59.27  
   640x350       59.28

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

Reply via email to