Bug 473879 - Preview when using the rectangular region tool is offset to the right.
Summary: Preview when using the rectangular region tool is offset to the right.
Status: RESOLVED FIXED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: 23.08.0
Platform: Arch Linux Linux
: NOR major
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-29 04:59 UTC by Tim Offereins
Modified: 2024-04-26 15:33 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Preview Issue (1.75 MB, image/jpeg)
2023-08-29 04:59 UTC, Tim Offereins
Details
Display Configuration (27.82 KB, image/png)
2023-08-29 05:00 UTC, Tim Offereins
Details
Screenshot of the problem (833.13 KB, image/jpeg)
2024-04-26 14:40 UTC, ezh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Offereins 2023-08-29 04:59:30 UTC
Created attachment 161252 [details]
Preview Issue

SUMMARY
When attempting to use the rectangular region tool and take a screenshot of a specific area the 'preview' is offset to the right when in a multiple monitor setup. 

Specifically, this is when the primary display is in the middle (I have 3) and there is a secondary display to the left. This issue does not occur when the additional display is to the right only, nor in single display instances. 


STEPS TO REPRODUCE
1. Setup multiple monitors with the secondary display set to the left.
2. Attempt to use rectangular region tool

OBSERVED RESULT
Preview is offset making it very difficult to take accurate screenshots using the rectangular region tool.
Please excuse the photo of the display, it was the quickest and easier thing to do to show the issue at the time.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kernel 6.4.12
(available in About System)
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.109.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION
X11
Laptop with 2 external monitors
Left: 1440x2560 (portrait)
Mid: 3840x2160 (primary)
Right: 1920x1080 (internal display)
Comment 1 Tim Offereins 2023-08-29 05:00:18 UTC
Created attachment 161253 [details]
Display Configuration
Comment 2 Antonio Marra 2023-09-14 09:25:52 UTC
I can confirm this bug. 
In dual monitor setup is almost impossible to capture a rectangular region, due to the fact that the left half of the screen in the first monitor is replicated in the right side of the screen of the same monitor.
This doesn't affect the second monitor.
The rectangular screenshot is indeed taken correctly also on the first monitor, despite the wrong preview.
Closing Spectacle restores the correct screen display.

SOFTWARE/OS VERSIONS
Linux: Kernel 6.2.0
KDE Plasma Version: 5.27.7.1
KDE Frameworks Version: 5.109.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION
X11
Laptop with 1 or 2 external monitors
2 external monitor configuration:
Left: 3840x2160 (secondary)
Right: 3840x2160 (primary)
Internal: closed

1 external monitor + internal monitor:
Left: 3840x2400 (internal primary)
Right: 3840x2160 (secondary)
Comment 3 Tim Offereins 2023-09-20 01:52:29 UTC
Further to the initial report. I have been able to confirm that this issue occurs in version 23.07.80 and greater, however, rolling back to 23.04.3 the issue is no longer present.
Comment 4 Antonio Marra 2023-10-10 13:14:37 UTC
There is any possibility to have this bug assigned? Multi monitor configurations are widely used, so that this bug is really annoying.
Alternatively, is it possible to downgrade to a specific version not suffering from this bug? If yes, which one?
Thanks.
Comment 5 Noah Davis 2023-10-10 14:50:18 UTC
This is likely already fixed in 24.02 (unreleased)
Comment 6 Arazil 2024-01-09 14:08:09 UTC
This bug still exists as of spectacle 23.04.2 (Debian unstable build). I am using Wayland and 3 monitors. In my case, the main display appears to be cut in half and the left side duplicates the right side. The issue is only present on the primary display.
Comment 7 ezh 2024-04-26 14:40:46 UTC
Created attachment 168921 [details]
Screenshot of the problem

Is my case the same issue? See screenshot.
Comment 8 Noah Davis 2024-04-26 15:09:40 UTC
(In reply to ezh from comment #7)
> Created attachment 168921 [details]
> Screenshot of the problem
> 
> Is my case the same issue? See screenshot.

It's hard to tell what I'm looking at, but it doesn't look like the problem described by the original reporter.

Marking this as fixed. There's a different report that this one is probably a duplicate of, but I can't find it.
Comment 9 Arazil 2024-04-26 15:33:01 UTC
(In reply to Noah Davis from comment #8)
> Marking this as fixed. There's a different report that this one is probably
> a duplicate of, but I can't find it.

I tried reproducing the issue on Arch Linux but was unsuccessful. Release tested this time around was "24.02.2-1". I think it's safe to mark this one "FIXED".

The screenshot appears to be an unrelated issue with the control widget replacement during preview.