Bug 434730

Summary: Screen shot taken at a prior time is shown in preview when "Prc Sc" is pressed for the first time instead on the screen shot of the current screen
Product: [Applications] Spectacle Reporter: Joel Anil Chacko <joelanilchacko>
Component: GeneralAssignee: Boudhayan Gupta <me>
Status: RESOLVED WORKSFORME    
Severity: normal CC: justin.zobel, kde, meven29, nate, srevinsaju
Priority: NOR    
Version First Reported In: 20.12.3   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: The screen of which the screen shot was taken in background and the resultant screen shot shown as preview in spectacle

Description Joel Anil Chacko 2021-03-21 20:06:51 UTC
SUMMARY
The first screen shot taken when "Prt Sc" button is pressed will not be shown. Instead, the preview shown in the spectacle window will that of a screen shot taken at a prior time. Once the spectacle window is open after the first press of the "Prt Sc" button, the next screen shot taken will be that of the current screen.

STEPS TO REPRODUCE
1. Press Prt Sc
2. Focus on Spectacle Window
3. Observe sreenshot preview

OBSERVED RESULT
The screen shot preview shown is that of the previous screenshot taken instead of current screen

EXPECTED RESULT
The screen shot preview shown should have been that of the current screen

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro Linux
Manjaro Version: 20.2.1
KDE Plasma Version: 5.21.3
KDE Frameworks Version: 5.80.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
It has also been observed that, the first screen shot taken the spectacle application without pressing the "Prt Sc", will also give a screen shot taken at a prior time. The screen shot of the current screen will only be taken at the second try.
Comment 1 Nate Graham 2021-03-22 02:11:09 UTC
This means that Spectacle was secretly still running in the background. I've seen this occasionally happen in the past but I thought we fixed it. :/
Comment 2 Joel Anil Chacko 2021-03-22 16:12:11 UTC
Created attachment 136946 [details]
The screen of which the screen shot was taken in background and the resultant screen shot shown as preview in spectacle

I have tried taking the screen shot from the latest version of spectacle "spectacle 21.07.70". The result was as shown in the attachment. The screen shot preview shown is that of a konsole window which I had taken at a prior time. I had pressed the "Prc Sc" button while on brave browser homepage, which can be seen in the background of the attachment. I had to repeat taking new screen shot 3 to 4 times for the screen shot of the brave homepage to come.
Comment 3 Justin Zobel 2022-11-11 06:56:32 UTC
I'm unable to replicate this, when Spectacle opens and I have it set to take a screenshot when opening, it's correctly showing my current screen layout.

Can you please confirm if this issue is still occurring for you?
Comment 4 Bug Janitor Service 2022-11-26 05:15:25 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2022-12-11 05:08:23 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!