Bug 413395 - Spectacle breaks after xrandr --scale
Summary: Spectacle breaks after xrandr --scale
Status: RESOLVED WORKSFORME
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: 19.08.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Boudhayan Gupta
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-24 14:07 UTC by Frederick Zhang
Modified: 2021-06-10 14:08 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frederick Zhang 2019-10-24 14:07:02 UTC
SUMMARY
I've got a 4K monitor and a 1080p one and I use xrandr to scale the 1080p display. But then after I click 'Take a snapshot', all displays just get messed up with contents showing in wrong monitors. It's again normal after quitting the snapshot mode though.

STEPS TO REPRODUCE
First of all, my display layout:
Display layout:
┌----------------┐┌--------------------------┐┌------------------┐
| 1920x1080 DP-0 ||                          || 1920x1080 HDMI-0 |
└----------------┘|      3840x2160 DP-3      |└------------------┘
                  |                          |
                  └--------------------------┘
1. Run 'xrandr --output DP-0 --auto --left-of DP-3 --output DP-3 --auto --primary --output HDMI-0 --auto --right-of DP-3 --scale 2.0' (I put it in SDDM Xsetup)
2. Launch Spectacle
3. Click 'Take a snapshot'

OBSERVED RESULT
Display layout becomes sort of messy and broken in snapshot mode.

EXPECTED RESULT
All contents in all monitors remain untouched in snapshot mode.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.17.1
KDE Frameworks Version: 5.63.0
Qt Version: 5.13.1
Kernel Version: 5.3.7-arch1-1-ARCH
OS Type: 64-bit

ADDITIONAL INFORMATION
GPU: Nvidia GTX980M
Driver: Nvidia proprietary
Compositor scale method: Accurate
Compositor backend: OpenGL 3.1
Comment 1 Frederick Zhang 2019-10-26 17:24:53 UTC
After applying the patch from bug 385885 and scaling both of the 1080p monitors with xrandr --scale 2.0, Spectacle now works so it seems that this issue only happens when the monitors have different panning configurations in my setup.
Comment 2 Vlad Zahorodnii 2020-09-08 13:13:00 UTC
> After applying the patch from bug 385885

Hmm, this is strange. Is there any chance that you verify whether https://bugs.kde.org/show_bug.cgi?id=385885#c43 fixes this bug as well?
Comment 3 Frederick Zhang 2021-06-10 14:08:13 UTC
I can confirm this is fixed now using 21.04.2 after bug 385885 was fixed.