Bug 488234

Summary: [wayland] Single-Window Recordings Have Incorrect Resolution on Scaled Displays
Product: [Applications] Spectacle Reporter: Eamonn Rea <eamonnrea>
Component: GeneralAssignee: Noah Davis <noahadvs>
Status: REPORTED ---    
Severity: normal CC: daanturo, kde, nate
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=488233
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Eamonn Rea 2024-06-09 00:15:05 UTC
SUMMARY
Single-Window Recordings in Spectacle have an incorrect resolution. On a 3840x2160 display @ 150% scaling, a recording of a maximised window will have a resolution of roughly 2560x1440. The width will be 2560, but the height will be slightly less, probably because of the height of the panel offsetting this.

This does not affect single-window recordings on non-scaled displays, only on scaled displays.

The Spectacle compression means this isn't a huge issue, but it is probably not ideal behaviour.

STEPS TO REPRODUCE
1. Maximise a window on a scaled display
2. Take a single-window recording
3. The resolution will be close to the scaled resolution of that display (3840 -> 2560, 2160 -> 1440).

OBSERVED RESULT
Single-window recordings are at the scaled resolution of the display and not the unscaled resolution.

EXPECTED RESULT
Single-window recordings should represent the true resolution of the window.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.9.3 Linux Zen
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.1

ADDITIONAL INFORMATION
See also: Bug 488233