Bug 444133

Summary: Transparent border around maximized windows when shadows are enabled
Product: [Applications] Spectacle Reporter: contact
Component: GeneralAssignee: Boudhayan Gupta <me>
Status: RESOLVED FIXED    
Severity: normal CC: kde, nate, nikolaj1860, xaver.hugl
Priority: NOR    
Version First Reported In: 21.08.2   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: A screenshot of a maximized window with transparent borders

Description contact 2021-10-20 17:40:19 UTC
Created attachment 142685 [details]
A screenshot of a maximized window with transparent borders

SUMMARY
When taking a screenshot of a maximized window with the option "Include window titlebar and borders" enabled, Spectacle includes a transparent border around the window.

STEPS TO REPRODUCE
1. Maximize a window;
2. Take its screenshot;
3. Save/paste the image anywhere.

OBSERVED RESULT
There's a thick transparent border around the window.

EXPECTED RESULT
No borders around the window.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE Neon 5.23.1
(available in About System)
KDE Plasma Version: 5.23.1
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2021-10-21 13:03:22 UTC
X11 or Wayland? Can reproduce on Wayland. If it's Wayland-only, then it's probably a KWin issue.
Comment 2 contact 2021-10-21 13:05:22 UTC
I'm still on X11, so not Wayland-specific.
Comment 3 Zamundaaa 2021-10-22 08:50:19 UTC

*** This bug has been marked as a duplicate of bug 372408 ***
Comment 4 contact 2021-10-22 09:03:18 UTC
Are you this is a duplicate? I like when shadows are present on the screenshots, however, in the case of maximized windows, there are no shadows and Spectacle shouldn't include a completely transparent border around the window just like it did before.
Comment 5 Zamundaaa 2021-10-22 09:30:52 UTC
If you have a look at multi-monitor systems, there definitely is a shadow on maximized windows. The other bug is about providing an option for whether or not to include shadows, seems fitting to me. We just need to expose the option for maximized and un-maximized separately.
Comment 6 contact 2021-10-22 09:39:46 UTC
I have a multi-monitor system, and I can't see any shadow around maximized window. And even if there were, it would be a bug, since that shadow would be distracting.