Bug 492687

Summary: Screenshot does not work with multiple screens and laptop screen shut
Product: [Plasma] kwin Reporter: gus
Component: multi-screenAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: viniciush.dev
Priority: NOR    
Version First Reported In: 6.1.4   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Glitches when starting rectangular region screenshot
Selecting a region (in the weirdly glitchy area)
Resulting screenshot not corresponding to selection

Description gus 2024-09-05 17:23:54 UTC
SUMMARY

Making a screenshot using the Rectangular Region using an external display with the laptop lid close has visual glitches and does not create the desired screenshot.

STEPS TO REPRODUCE
1. Connect an external monitor to a laptop
2. Close the laptop lid to only use the external monitor
3. Take "Rectangular Region" screenshot

OBSERVED RESULT

1. Display glitches while taking the screenshot: some windows are displayed multiple times
2. The content that is inside the selection square does not correspond to the actual screenshot

EXPECTED RESULT

1. No display glitch. The screen get slightly darker with the selection square highlighted
2. The screenshot corresponds to the content in the highlighted square

SOFTWARE/OS VERSIONS

Operating System: CachyOS Linux 
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.7-2-cachyos (64-bit)
Graphics Platform: Wayland
Processors: 8 × 11th Gen Intel® Core™ i7-11390H @ 3.40GHz
Memory: 15.4 GiB of RAM
Graphics Processor: Mesa Intel® Xe Graphics

ADDITIONAL INFORMATION

Retangular Region screenshot works properly if the laptop lid is open.
Comment 1 Vinícius 2024-09-05 17:57:28 UTC
i get reproduce the visuals glitches(the screen look likes it zoomed for a millisecond and them go back to normal) but my screenshots look right, and i can reproduce the visual glitches both with the lid open or closed

Operating System: Fedora Linux 40
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.6-200.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5700U with Radeon Graphics
Memory: 7,1 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: LENOVO
Product Name: 82MF
System Version: IdeaPad 3 15ALC6
Comment 2 gus 2024-09-05 18:07:58 UTC
Created attachment 173357 [details]
Glitches when starting rectangular region screenshot
Comment 3 gus 2024-09-05 18:09:01 UTC
Created attachment 173358 [details]
Selecting a region (in the weirdly glitchy area)
Comment 4 gus 2024-09-05 18:09:32 UTC
Created attachment 173359 [details]
Resulting screenshot not corresponding to selection
Comment 5 gus 2024-09-05 18:12:32 UTC
The visual glitch is not fleeting for me. It lasts as long as the selection tool is running. See the first picture.

There is only a konsole window on the screen. It is duplicated partially in a narrow band in the middle of the screen.

The rectangular selection has icons from that window in it. But the actual screenshot is completely black, probably corresponding to the black konsole window content beneath the glitch.
Comment 6 gus 2025-02-21 21:54:32 UTC
Seems to work in 6.3.