Bug 467855

Summary: On X11, Rectangular Region captures the wrong area with multiple monitors
Product: [Applications] Spectacle Reporter: András Manţia <amantia>
Component: GeneralAssignee: Boudhayan Gupta <me>
Status: RESOLVED DUPLICATE    
Severity: normal CC: kde, nate, noahadvs
Priority: NOR Keywords: regression
Version: 23.03.80   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Screen layout
Could not reproduce with this screen layout

Description András Manţia 2023-03-27 16:39:05 UTC
On a multi-monitor setup screenshoting a rectangle captures the wrong screen area:

On the first (leftmost) monitor it is correct.
On the second monitor the captured area is much to the right from the selected rectangle.
On the third monitor it captured the full desktop (3 monitors) instead of the selection.
Comment 1 Nate Graham 2023-04-05 00:12:53 UTC
Are you using Wayland or X11?
Comment 2 András Manţia 2023-04-05 05:30:05 UTC
I use X11
Comment 3 András Manţia 2023-04-05 05:31:10 UTC
Version  21.12.3 does not have the problem.
Comment 4 Nate Graham 2023-04-05 15:05:29 UTC
Can you take a screenshot of what your screen arrangement looks like in the KScreen KCM?
Comment 5 András Manţia 2023-04-05 21:07:21 UTC
Created attachment 157883 [details]
Screen layout
Comment 6 Noah Davis 2023-04-11 15:26:29 UTC
Is this problem still around? I could not reproduce this.
Comment 7 András Manţia 2023-04-11 19:12:21 UTC
Yes, it still happens with 23.03.90 too
Comment 8 Noah Davis 2023-04-11 19:20:49 UTC
Created attachment 158019 [details]
Could not reproduce with this screen layout
Comment 9 András Manţia 2023-04-11 20:15:21 UTC
This is a different layout. I have 3 monitors (two 4K, one smaller). Main one is the middle one. 
QT_SCREEN_SCALE_FACTORS=DisplayPort-0=1.5;DisplayPort-1=1.5;DisplayPort-2=1.5;HDMI-A-0=1.5;

DisplayPort-0 is the middle one, DisplayPort-1 is the leftmost, DisplayPort-2 is the rightmost (smaller). HDMI was not turned on when I did the test.
Comment 10 Noah Davis 2023-04-11 22:24:18 UTC
(In reply to András Manţia from comment #9)
> This is a different layout. I have 3 monitors (two 4K, one smaller). Main
> one is the middle one. 
> QT_SCREEN_SCALE_FACTORS=DisplayPort-0=1.5;DisplayPort-1=1.5;DisplayPort-2=1.
> 5;HDMI-A-0=1.5;
> 
> DisplayPort-0 is the middle one, DisplayPort-1 is the leftmost,
> DisplayPort-2 is the rightmost (smaller). HDMI was not turned on when I did
> the test.

OK, it seem that the fractional scale factors are the cause, not the screen layout.
Comment 11 Noah Davis 2023-04-11 22:38:52 UTC

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