Bug 484003 - Incorrect pixel size shown when taking a rectangular region screenshot with fractional display scales
Summary: Incorrect pixel size shown when taking a rectangular region screenshot with f...
Status: RESOLVED DUPLICATE of bug 478426
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: 24.02.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-19 14:51 UTC by neobrain
Modified: 2024-04-11 01:57 UTC (History)
2 users (show)

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 neobrain 2024-03-19 14:51:14 UTC
SUMMARY
Spectacle shows the wrong pixel count when taking a screenshot using "Rectangular Region" if fractional display scaling is used. For example, when dragging a rectangle across the entire screen on my 1080p monitor, Spectacle claims to cover an area of 3071x1727 pixels. The saved screenshot itself has the correct dimensions.

STEPS TO REPRODUCE
1. Set display scale to 125%
2. Open spectacle and take a screenshot via "Rectangular Region"
3. Drag a rectangle across the entire screen and observe the pixel count

OBSERVED RESULT
On my 1080p monitor, the full-screen rectangle is shown to have 3071x1727 pixels.

EXPECTED RESULT
Either the physical (1920x1080) or the logical (1536x864) number of pixels should be shown. (For reference, non-fractional scales 100% and 200% currently both report 1920x1080 pixels.)

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.0.2
KDE Plasma Version:  6.0.2
KDE Frameworks Version:  6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
I'm running Wayland.
Comment 1 Nate Graham 2024-04-11 01:57:50 UTC

*** This bug has been marked as a duplicate of bug 478426 ***