Bug 495825

Summary: Window screenshots and screencasts do not include drag surfaces
Product: [Plasma] kwin Reporter: Fernando M. Muniz <fernandommuniz>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: bugseforuns, kde, kde, nate, xaver.hugl
Priority: NOR    
Version First Reported In: 6.2.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=502256
https://bugs.kde.org/show_bug.cgi?id=509090
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: A text file was being dragged, but only the cursor is being shown.

Description Fernando M. Muniz 2024-11-05 10:04:02 UTC
Created attachment 175542 [details]
A text file was being dragged, but only the cursor is being shown.

I've noticed that if you screenshot while dragging something, it doesn't appear on the screenshot, only the cursor sprite is displayed.
Comment 1 Nate Graham 2024-11-05 18:39:30 UTC
Can reproduce.
Comment 2 Zamundaaa 2025-09-05 12:20:56 UTC
The reason behind this is simply that the drag item isn't a child of the cursor, so it doesn't get rendered with the cursor.

For dragging with a mouse, the fix is easy enough - just make the item a child of the cursor item if the drag was started with the pointer. For touch input, things are a bit more complicated though... do we always want to paint the drag item? Should we treat it as a "cursor" somehow?
Comment 3 Zamundaaa 2025-09-05 12:21:04 UTC
*** Bug 509090 has been marked as a duplicate of this bug. ***