Bug 511171

Summary: "Include Windows and Titlebars" screenshot setting in Spectacle no longer works
Product: [Applications] Spectacle Reporter: Tulip <noctaliavibing>
Component: GeneralAssignee: Noah Davis <noahadvs>
Status: RESOLVED FIXED    
Severity: major CC: contact, kde, kde, nate
Priority: HI Keywords: regression
Version First Reported In: 6.5.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.5.2
Sentry Crash Report:

Description Tulip 2025-10-26 17:09:22 UTC
SUMMARY
The "Include Windows and Titlebars" setting in Spectacle no longer works as intended.

STEPS TO REPRODUCE
1. Take a screenshot with the setting on
2. Turn it off
3. Take another
4. Realise turning it off did nothing

OBSERVED RESULT
Despite turning the setting off, it still captures the titlebar. I believe the option for shadows is bugged in a similar manner?

EXPECTED RESULT
Turning the setting off should result in no titlebar being captured.

SOFTWARE/OS VERSIONS
Linux:  6.17.5-2-cachyos-deckify (64-bit)
KDE Plasma Version: 6.5.0
KDE Frameworks Version: 6.19.0 
Qt Version: 6.10.0
Comment 1 David Edmundson 2025-10-27 15:39:58 UTC
I can reproduce.

But given the prevalence of CSDs it's probably worth just getting rid of the option as it can't work reliably anymore.
Comment 2 Tulip 2025-10-27 17:16:06 UTC
(In reply to David Edmundson from comment #1)
> I can reproduce.
> 
> But given the prevalence of CSDs it's probably worth just getting rid of the
> option as it can't work reliably anymore.

I think it'd be nice to keep it for windows that utilise SSDs. Perhaps it can have it's text or tooltip modified to indicate a lack of CSD support and then resolve the option not working for SSD?
Mostly asking for this as no-titlebar window screenshotting is nice for things like games that don't feature built-in screenshot functions.
Comment 3 Nate Graham 2025-10-29 18:24:14 UTC
Can confirm. Likely the same root cause as Bug 510982.
Comment 4 Bug Janitor Service 2025-10-30 12:20:44 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/8335
Comment 5 Zamundaaa 2025-10-30 14:17:48 UTC
Git commit 2e4bd9a1af707914c8968a88da49c93b2d589680 by Xaver Hugl.
Committed on 30/10/2025 at 13:49.
Pushed by zamundaaa into branch 'master'.

plugins/screenshot: filter out decoration and shadows to match the options

This was accidentally dropped in 7f1ac1136e72b1b404235477dc20014ef3bd522f
Related: bug 510982

M  +16   -2    src/plugins/screenshot/screenshot.cpp

https://invent.kde.org/plasma/kwin/-/commit/2e4bd9a1af707914c8968a88da49c93b2d589680
Comment 6 Zamundaaa 2025-10-30 21:46:16 UTC
Git commit 9c77ac6d3386b453e9f90af5235094dc83c96247 by Xaver Hugl.
Committed on 30/10/2025 at 21:15.
Pushed by zamundaaa into branch 'Plasma/6.5'.

plugins/screenshot: filter out decoration and shadows to match the options

This was accidentally dropped in 7f1ac1136e72b1b404235477dc20014ef3bd522f
Related: bug 510982


(cherry picked from commit 2e4bd9a1af707914c8968a88da49c93b2d589680)

Co-authored-by: Xaver Hugl <xaver.hugl@kde.org>

M  +16   -2    src/plugins/screenshot/screenshot.cpp

https://invent.kde.org/plasma/kwin/-/commit/9c77ac6d3386b453e9f90af5235094dc83c96247