Bug 455126

Summary: Spectacle takes a photo of itself when capturing a full screen with no delay
Product: [Applications] Spectacle Reporter: Paul Brown <paul.brown>
Component: GeneralAssignee: Boudhayan Gupta <me>
Severity: normal CC: antonio.prcela, fabiotrentino, fella, jay, kde, lee295012, nate, wan+kde, xaver.hugl, yaomtc
Priority: VHI Keywords: regression
Version: 22.04.1   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=454937
Latest Commit: Version Fixed In:
Attachments: Screen capture taken with Spectacle, showing Spectacle in the process of minimising

Description Paul Brown 2022-06-10 13:12:57 UTC
Created attachment 149598 [details]
Screen capture taken with Spectacle, showing Spectacle in the process of minimising


When capturing a full screen without any delay, Spectacle captures a picture of itself as it minimises. See attached image

1. Open Spectacle
2. Chose "Area:" > "Full Screen"
3. Choose "Delay:" > "No Delay"
4. Click "Take a New Screenshot"


You will see a "ghost" of Spectacle as it is in the process of minimising.


No ghost of Spectacle should be visible. 

Linux/KDE Plasma: neon
(available in About System) 
KDE Plasma Version: 5.24.90
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.4


Maybe Spectacle should minimise immediately without an intermediate animation. The current workaround is to give it a delay of, say, 1 second.
Comment 1 Nate Graham 2022-06-10 15:27:04 UTC
Hah, can reproduce. I'm not sure if it's possible to conditionally override the minimize animation, so maybe we should just instantly hide the window instead of minimizing when you take a full screen screenshot. Or we could do this for all types of screenshots.
Comment 2 Antonio Prcela 2022-06-16 15:44:19 UTC
Is this Wayland? I can't reproduce it on X. Set the animation speed to lowest, minimization does not happen. It instantly hides the window, takes screenshot, shows spectacle window (this 'unminimization' has an animation).

other than that:
Comment 3 deadite66 2022-06-16 15:59:09 UTC
this does happen on wayland.
Comment 4 Antonio Prcela 2022-06-16 16:08:39 UTC
ok thx, just reproduced it. I found some stuff, will test and see if i can come up with an workaround.
Comment 5 Nate Graham 2022-06-21 17:54:11 UTC
*** Bug 455629 has been marked as a duplicate of this bug. ***
Comment 6 Yao Mitachi 2022-06-27 23:59:49 UTC
Possibly related: https://bugs.kde.org/show_bug.cgi?id=376865
Comment 7 wang 2022-06-30 06:07:17 UTC
This only happens with the "squash" desktop effect. Changing minimize/unminimize animation to "magic lamp" does not show animation to minimize Spectacle, which (inadvertently?) fixes this bug.
Comment 8 Nate Graham 2022-07-05 15:36:25 UTC

*** This bug has been marked as a duplicate of bug 376865 ***
Comment 9 Nate Graham 2023-03-27 19:39:44 UTC

*** This bug has been marked as a duplicate of bug 423435 ***