Bug 475503 - ScreenShot2: Workspace screenshots are clipped on the right and bottom with scaling on X11
Summary: ScreenShot2: Workspace screenshots are clipped on the right and bottom with s...
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: effects-various (show other bugs)
Version: git master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-12 07:17 UTC by Noah Davis
Modified: 2023-10-14 12:01 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Noah Davis 2023-10-12 07:17:42 UTC
SUMMARY
When the global UI scale is not 100%, the image returned by CaptureWorkspace is clipped off on the right and bottom sides since the image size isn't large enough to fit the whole workspace.

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 20231008
KDE Plasma Version: 5.27.80
KDE Frameworks Version: 5.240.0
Qt Version: 6.5.3
Kernel Version: 6.5.6-1-default (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 4800H with Radeon Graphics
Memory: 30.8 GiB of RAM
Graphics Processor: AMD Radeon Graphics

ADDITIONAL INFORMATION
Related: https://bugs.kde.org/show_bug.cgi?id=474778
Comment 1 Bug Janitor Service 2023-10-12 07:18:38 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/4498
Comment 2 Noah Davis 2023-10-14 12:01:19 UTC
Suddenly, I can't reproduce this anymore, so I'll close this for now.