| Summary: | Under Wayland, screenshots include window shadows, even when the option to do so is disabled | ||
|---|---|---|---|
| Product: | [Applications] Spectacle | Reporter: | Sean Baggaley <sean> |
| Component: | General | Assignee: | Noah Davis <noahadvs> |
| Status: | REOPENED --- | ||
| Severity: | major | CC: | 4wy78uwh, contact, f.alexander.wilms, kde, nate, ostroffjh |
| Priority: | HI | Keywords: | regression |
| Version First Reported In: | 6.5.0 | ||
| Target Milestone: | --- | ||
| Platform: | openSUSE | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/plasma/kwin/-/commit/9c77ac6d3386b453e9f90af5235094dc83c96247 | Version Fixed/Implemented In: | 6.5.2 |
| Sentry Crash Report: | |||
| Attachments: | Screenshot from Spectacle, showing correctly-sized image, but with shadow-sized padding around the window being captured | ||
|
Description
Sean Baggaley
2025-10-23 22:47:54 UTC
Can reproduce. A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/8335 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 511171 M +16 -2 src/plugins/screenshot/screenshot.cpp https://invent.kde.org/plasma/kwin/-/commit/2e4bd9a1af707914c8968a88da49c93b2d589680 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 511171 (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 *** Bug 511477 has been marked as a duplicate of this bug. *** Plasma 6.5.2 no longer includes window shadows when the option is disabled, however... the boundary of the shadows is still included in the image, resulting in transparent padding around the window in the screenshot. Furthermore, the output image is correctly the same size of the window, but with this padding it means the actual window content gets downscaled. I'll attach an image showing this. Created attachment 186601 [details]
Screenshot from Spectacle, showing correctly-sized image, but with shadow-sized padding around the window being captured
Comment on attachment 186601 [details] Screenshot from Spectacle, showing correctly-sized image, but with shadow-sized padding around the window being captured (In reply to Sean Baggaley from comment #6) > Furthermore, the output image is correctly the same size of the window, but > with this padding it means the actual window content gets downscaled. > I'll attach an image showing this. Ah! Could that be the cause of https://discuss.kde.org/t/blurry-screenshots-using-spectacle/29945/4?u=rokejulianlockhart? IDK whether I should reopen this, or whether we should file a new issue. What do you think? |