Bug 455126 - Spectacle takes a photo of itself when capturing a full screen with no delay
Summary: Spectacle takes a photo of itself when capturing a full screen with no delay
Status: RESOLVED DUPLICATE of bug 423435
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: 22.04.1
Platform: Neon Linux
: VHI normal
Target Milestone: ---
Assignee: Boudhayan Gupta
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2022-06-10 13:12 UTC by Paul Brown
Modified: 2023-03-27 19:39 UTC (History)
10 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screen capture taken with Spectacle, showing Spectacle in the process of minimising (1.37 MB, image/png)
2022-06-10 13:12 UTC, Paul Brown
Details

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

SUMMARY

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

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

OBSERVED RESULT

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

EXPECTED RESULT

No ghost of Spectacle should be visible. 

SOFTWARE/OS VERSIONS
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

ADDITIONAL INFORMATION

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:
https://invent.kde.org/graphics/spectacle/-/blob/master/src/SpectacleCore.cpp#L290
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 ***