https://bugs.kde.org/show_bug.cgi?id=474778
Bug ID: 474778 Summary: X11Output does not have its scale set Classification: Plasma Product: kwin Version: git master Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: kwin-bugs-n...@kde.org Reporter: noaha...@gmail.com Target Milestone: --- SUMMARY In X11StandaloneBackend::doUpdateOutputs(), X11Output::State::scale is never set, leaving it at the default 1.0 value. This causes CaptureArea and CaptureWorkspace from the ScreenShot2 DBus API to return an incorrect image in a Plasma 6 X11 session when the global scale is not 100%. STEPS TO REPRODUCE 1. In the Display Configuration KCM, set the global scale to 125%. 2. Reboot and log into a Plasma 6 X11 session. 3. Run `spectacle -if` to take a screenshot of the whole workspace. OBSERVED RESULT The image is smaller than it should be and doesn't actually contain the whole workspace. EXPECTED RESULT The image should have a size equal to the virtual desktop size multiplied by the highest screen scale in the virtual desktop. The image should also contain the whole workspace. SOFTWARE/OS VERSIONS Operating System: openSUSE Tumbleweed 20230917 KDE Plasma Version: 5.27.80 KDE Frameworks Version: 5.240.0 Qt Version: 6.5.2 Kernel Version: 6.5.3-1-default (64-bit) Graphics Platform: X11 Processors: 16 × AMD Ryzen 7 4800H with Radeon Graphics Memory: 30.8 GiB of RAM Graphics Processor: AMD Radeon Graphics ADDITIONAL INFORMATION If you put `qDebug() << output->scale()` in X11StandaloneBackend::doUpdateOutputs() to get the scales of the outputs, you will see that it is always 1.0 -- You are receiving this mail because: You are watching all bug changes.