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

            Bug ID: 465850
           Summary: Virtual desktop size is wrong for certain scale values
    Classification: Plasma
           Product: plasmashell
           Version: 5.27.0
          Platform: Archlinux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Desktop Containment
          Assignee: plasma-b...@kde.org
          Reporter: gudvinr+...@gmail.com
                CC: notm...@gmail.com
  Target Milestone: 1.0

SUMMARY

My real display size is 2560x1440.
I use 115% scale, which (in theory) should give "virtual" screen size 2226x1252
or maybe 2227x1253 depending on how rounding is performed.
Desktop size reported by kwin debug console is 2229x1254, which is neither.

That leads to inconsistencies, for example I have an issue where MPV, which
supports fractional scaling (at least in 0.35.1), scales itself to 1252 if I
set window geometry to 1440.

STEPS TO REPRODUCE
1. Set display scale to 115%
2. Run mpv --no-keepaspect-window --geometry=WxH, where W is native display
width and H is some arbitrary value

OBSERVED RESULT
Virtual desktop size doesn't match scale used by real apps or any meaningful
value you could get by multiplying screen dimensions

EXPECTED RESULT
Predictable desktop size that fits windows that use same fractional scale

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.27.0
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.1.12-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Graphics Processor: AMD Radeon RX Vega M GL Graphics

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

Reply via email to