Bug 495825 - Window screenshots and screencasts do not include drag surfaces
Summary: Window screenshots and screencasts do not include drag surfaces
Status: CONFIRMED
Alias: None
Product: kwin
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 6.2.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
: 509090 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-11-05 10:04 UTC by Fernando M. Muniz
Modified: 2025-09-05 12:41 UTC (History)
5 users (show)

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


Attachments
A text file was being dragged, but only the cursor is being shown. (62.95 KB, image/png)
2024-11-05 10:04 UTC, Fernando M. Muniz
Details

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