Bug 492687 - Screenshot does not work with multiple screens and laptop screen shut
Summary: Screenshot does not work with multiple screens and laptop screen shut
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: multi-screen (other bugs)
Version First Reported In: 6.1.4
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-05 17:23 UTC by gus
Modified: 2025-02-21 21:54 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Glitches when starting rectangular region screenshot (2.40 MB, image/jpeg)
2024-09-05 18:07 UTC, gus
Details
Selecting a region (in the weirdly glitchy area) (2.41 MB, image/jpeg)
2024-09-05 18:09 UTC, gus
Details
Resulting screenshot not corresponding to selection (70.83 KB, image/png)
2024-09-05 18:09 UTC, gus
Details

Note You need to log in before you can comment on or make changes to this bug.
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.