Bug 469518 - The preview of Rectangular Region screenshot is not correct when working with a dual monitor
Summary: The preview of Rectangular Region screenshot is not correct when working with...
Status: RESOLVED DUPLICATE of bug 462860
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: 23.04.0
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords: wayland
Depends on:
Blocks:
 
Reported: 2023-05-09 04:18 UTC by ihipop
Modified: 2023-07-11 11:39 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 23.04.1


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ihipop 2023-05-09 04:18:25 UTC
SUMMARY
I have a 4K external monitor and a 1080P internal eDP, The UI scale is 2X in KCM
But The preview of the Rectangular Region screenshot is not correct when working with a dual monitor  
On the 4k EXTERNAL  right monitor, there will be a rectangle part of the right screen duplicated to the left On the preview UI of  Rectangular Region selection, but if I make any selection of the duplicated part,The result PIC is correct content of the screen.

STEPS TO REPRODUCE
see the attached video

OBSERVED RESULT
A duplicated part of the right screen on the preview UI of the Rectangular Region selection

EXPECTED RESULT
no  duplicated part of the right screen on the preview UI

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  Y
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9
Comment 2 Yu Te Wang 2023-05-13 06:07:18 UTC
I have a similar issue in the latest Spectacle (version 23.04.1). A further inspection indicates that this is probably related to the monitor position. In the attachment is the same issue happening on my desktop. The duplicated artifact would always shift toward the top left corner (position 0,0).

Video of the issue: https://nextcloud.stw.tw/s/9X98wdzkaExg7Qk

Here is my system spec:
OS: EndeavourOS
KDE Plasma Version: 5.27.5
KDE Framework Version: 5.105.0
Qt Version: 5.15.9
Kernel Version: 6.3.1-arch2-1 (64-bit)
Graphics Platform: Wayland
Comment 3 Nate Graham 2023-05-18 15:48:24 UTC
Weird, cannot reproduce on Wayland with a screen arrangement that is identical with the only difference being that the laptop's internal screen is 4k, and the external one is 1080p. I've arranged them in the same relative positions based on resolution to simulate your setup, though.
Comment 4 Yu Te Wang 2023-05-18 16:20:42 UTC
I just built Spectacle from the git repo, and the git version doesn't seem to have this issue.
Maybe this was fixed after the 23.04.1 release? ihipop, can you try the git version and see if the issue persists?
Comment 5 Nate Graham 2023-05-18 16:43:43 UTC
Yes, quite possible. Let's call it fixed for now, until and unless it shows up again.
Comment 6 ihipop 2023-06-12 05:56:04 UTC
(In reply to Nate Graham from comment #5)
> Yes, quite possible. Let's call it fixed for now, until and unless it shows
> up again.

@Yu Te Wang

 23.04.1 is still not working
 I'm using Manjaro and I've been waiting for the update of  Spectacle


```
pamac info spectacle 
Name                  : spectacle
Version               : 23.04.1-1
Description           : KDE screenshot capture utility
URL                   : https://apps.kde.org/spectacle/
Licenses              : GPL
Repository            : extra
Installed Size        : 3.4 MB
Groups                : kde-applications kde-graphics
Depends On            : xcb-util-cursor purpose knewstuff qt5-tools kpipewire
Optional Dependencies : --
Required By           : --
Optional For          : --
Provides              : --
Replaces              : --
Conflicts With        : --
Packager              : Antonio Rojas <arojas@archlinux.org>
Build Date            : Wed 10 May 2023 04:57:28 PM CST
Install Date          : Tue 06 Jun 2023 05:18:56 PM CST
Install Reason        : Explicitly installed
Validated By          : Signature
Backup files          : --
```

As I reported before, it is still the same.
Comment 7 Ilya Bizyaev 2023-07-10 19:57:24 UTC

*** This bug has been marked as a duplicate of bug 462860 ***
Comment 8 ihipop 2023-07-11 06:07:12 UTC
(In reply to Ilya Bizyaev from comment #7)
> 
> *** This bug has been marked as a duplicate of bug 462860 ***

I don't think they are duplicated.

Have you viewed the video that I have uploaded before? 

https://objectstorage.us-phoenix-1.oraclecloud.com/n/axs1xyqscjf6/b/bucket-oss/o/KDE%2Fbug-report%2F2023-05-09_11-59-47.mp4

this problem happens on the screen without  fractional scaling
Comment 9 Ilya Bizyaev 2023-07-11 11:37:42 UTC
Then maybe the cause is broader and the title needs to be updated, but the symptoms are the same
Comment 10 Ilya Bizyaev 2023-07-11 11:39:06 UTC
Looking at the video, one of the screens has 125% scaling, which is fractional