Bug 486847 - [Wayland] Wrong screenshot resolution when scaling enabled in multi monitor configuration
Summary: [Wayland] Wrong screenshot resolution when scaling enabled in multi monitor c...
Status: RESOLVED INTENTIONAL
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: 24.02.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-10 13:43 UTC by firewalker
Modified: 2024-05-10 15:03 UTC (History)
1 user (show)

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


Attachments
Image with the issue (376.66 KB, image/png)
2024-05-10 13:43 UTC, firewalker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description firewalker 2024-05-10 13:43:32 UTC
Created attachment 169363 [details]
Image with the issue

When in multi monitor configuration under Wayland, the resolution of the screenshot screenshot wrong. It is lrger by the scaling factor amount. 

My configuration is a laptop scaled at 125% with two additional monitors.

The attached image should be 1980x1080, not 2400x1350.

I believe this is more general issue because I have problems with blurry font in some applications.

Operating System: Arch Linux 
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Kernel Version: 6.8.9-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 PRO 4650U with Radeon Graphics
Memory: 14,9 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: LENOVO
Product Name: 20UD0010GM
System Version: ThinkPad T14 Gen 1
Comment 1 Noah Davis 2024-05-10 13:56:33 UTC
Which mode are you using to capture the screenshot?
Comment 2 firewalker 2024-05-10 14:00:48 UTC
(In reply to Noah Davis from comment #1)
> Which mode are you using to capture the screenshot?

All screens or rectangular region. I think when using Current Screen the result is OK.
Comment 3 Noah Davis 2024-05-10 15:03:25 UTC
Issues with image blurriness should be improved in version 24.05, but All Screens and Rectangular Region always require compromises when there are different scale factors involved. This is because we try to make the layout of the screen images match the layout of your screens. Otherwise, there is no clear way to combine the images. In 24.05, we now round the scale factors up to the next integer scale factor to preserve sharpness. This means your 1920x1080@125% screen would have a 3840x2160 image, unless you used the Current Screen mode instead. The reason why Current Screen always has the real resolution is because we don't have to worry about the layout of screens when taking only one screen.

This unfortunately means that the resolution not matching your real resolution is intentional when using All Screens and Rectangular Region. Perhaps Rectangular Region could be improved by scaling the image down to the original screen scale when the rectangular area is only on one screen, although we don't have an easy way to do that right now. I'm marking this issue as Resolved Intentional because it was originally about image resolution vs screen resolution with All Screens and Rectangular Region.

If you want someone to investigate adding the improvement for Rectangular Region I mentioned, you could make a new report specifically about that.