| Summary: | Spectacle toolbar shows wrong pixel size during region selection (Wayland fractional scaling) | ||
|---|---|---|---|
| Product: | [Applications] Spectacle | Reporter: | Andrea Ippolito <andrea.ippo> |
| Component: | General | Assignee: | Noah Davis <noahadvs> |
| Status: | REPORTED --- | ||
| Severity: | normal | CC: | ato300, kde, pavel23dob |
| Priority: | NOR | ||
| Version First Reported In: | 6.3.1 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | Shows the wrong pixel values for various global scale % | ||
|
Description
Andrea Ippolito
2024-06-04 18:44:49 UTC
Working fine of course at 100%, but also at 200%. Created attachment 176600 [details]
Shows the wrong pixel values for various global scale %
I can reproduce this on Kubuntu 24.10 (Plasma 6.1.5, Frameworks 6.6.0, Qt 6.6.2), Wayland, on a 2K monitor (2560x1440).
I tested various global scale percentages and I believe I found the "formula" of the error.
On 100%, 200%, 300% pixels are reported correctly.
In the attached table, I've shown the reported pixels when I select the rectangular region to be as large as possible (i.e. to encompass the whole screen) and I compared that with the expected resolution. Small rounding errors are possible.
So for the fractional global scale values it seems that the number of pixels displayed is A times larger than expected, where A is computed as:
A = CEIL(GlobalScale) / GlobalScale
*** Bug 491991 has been marked as a duplicate of this bug. *** Still happening with Spectacle 6.3.1 Also, when reaching the boundaries of the screen while drawing a rectangular selection, the popup showing the dimensions disappears as its kicked out of screen boundaries. It should move dynamically (or always be displayed inside the rectangle?) |