Bug 473446

Summary: spectacle (wayland) main window does not disappears when taking a screenshot, no config option available
Product: [Applications] Spectacle Reporter: Fabio Coatti <fabio.coatti>
Component: GeneralAssignee: Noah Davis <noahadvs>
Status: RESOLVED FIXED    
Severity: normal CC: kde, nate
Priority: NOR    
Version First Reported In: 23.04.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Windows rules
konsole specific rule

Description Fabio Coatti 2023-08-16 11:26:44 UTC
SUMMARY
Spectacle always takes a screenshot including his main window. I looked at the settings but did not saw any related option. Notes: I'm on wayland. When taking the screenshot it seems that main window slides out of the screen (animation) but immediately reappears. 


STEPS TO REPRODUCE
Just take a screenshot using wayland setup

OBSERVED RESULT
Spectacle main window is always visible (and pretty annoying :) )

EXPECTED RESULT
Main window should disappear, or at least being a configurable behavior

SOFTWARE/OS VERSIONS
Operating System: Gentoo Linux 2.14
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10
Kernel Version: 6.4.10 (64-bit)
Graphics Platform: Wayland
Comment 1 Nate Graham 2023-08-17 18:30:38 UTC
Are you using any Window Rules?
Comment 2 Fabio Coatti 2023-08-17 19:35:06 UTC
Only for konsole, according to settings. (screenshot attached)
Comment 3 Fabio Coatti 2023-08-17 19:36:00 UTC
Created attachment 161039 [details]
Windows rules
Comment 4 Nate Graham 2023-08-21 17:46:44 UTC
Can you show me the settings for that rule?
Comment 5 Fabio Coatti 2023-08-22 07:53:04 UTC
Created attachment 161106 [details]
konsole specific rule

Sure, here you go
Comment 6 Fabio Coatti 2023-08-22 07:55:11 UTC
Just to be on the safe side, I removed that rule and the behavior of spectacle did not changed. I did not expect something different, being the rule a specific one, but it was worth a try.
Comment 7 Nate Graham 2023-08-22 16:27:12 UTC
Ok, I guess window rules aren't involved, then.

I'm running out of ideas. Any chance you could use your phone to make a recording of what's happening?
Comment 8 Fabio Coatti 2023-08-24 11:58:48 UTC
Sure thing, I'm attaching the video here.
The interesting thing is that the spectacle windows seems to disappear (move to the right) and immediately appears again. No idea what's going on. If you need a video of the options that are shown in configuration windows, just let me know.
Comment 9 Nate Graham 2023-08-25 18:34:04 UTC
Video can be found at https://photos.google.com/share/AF1QipMwwigMnUzkwKRax4XpEHRhm2vUJMUFBQTndtk3bUpvTRnTu1pPZ25HAJZMPAjS8w/photo/AF1QipOUHci5VsuwFnCIWaGTurEpu7Mluy_sI-HD0rW8?key=NEtQWTU1MW85bTRYUGY2WFNDNlA2cWZ1X1pGcUln.

I see that it's also not respecting your 2 second delay. It looks like it takes the screenshot immediately. That's most likely the proximate cause.

If you counter-intuitively remove the delay, does it start working?
Comment 10 Fabio Coatti 2023-08-27 16:28:09 UTC
Since last comment, my kde-apps/spectacle package (gentoo ebuild) got updated from 23.04.3 to 23.08.0 and happily the problem disappeared. Out of curiosity I tried with 2 sec delay, no delay, etc. It always behaved as expected, that means main window disappears 
before taking the screenshot and reappears just after.
I guess this bug can be considered solved :)
Comment 11 Nate Graham 2023-08-28 19:22:01 UTC
Oh good!