Bug 415391

Summary: Pressing PrintScreen when Spectacle is open doesn't work
Product: [Applications] Spectacle Reporter: Shriramana Sharma <samjnaa>
Component: GeneralAssignee: Boudhayan Gupta <me>
Status: RESOLVED FIXED    
Severity: normal CC: kde
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 19.04.0
Sentry Crash Report:

Description Shriramana Sharma 2019-12-20 12:16:25 UTC
STEPS TO REPRODUCE
1. Press PrintScreen to take a screenshot.
2. Spectacle is opened.
3. Without closing Spectacle (maybe go to some other app to display something else and) press PrintScreen to take another screenshot.

OBSERVED RESULT
No fresh screenshot is taken.

EXPECTED RESULT
Screenshot should be taken and displayed in a Spectacle window whenever PrintScreen is pressed.

DETAILS:

The basic dumb behaviour would be to open a new Spectacle window for each PrintScreen press.

If one is interested, a more “intelligent” behaviour can be implemented as follows:

Is a Spectacle window already open?

a:   If yes, has the earlier screenshot been saved?
a.1: Yes: Then re-use that window and bring it to the foreground.
a.2: No: Open a new Spectacle window.
b:   If no, then open a new Spectacle window.

VERSIONS:
Spectacle 17.12.3
Kubuntu Bionic LTS with latest updates
KDE Frameworks 5.44.0
Qt 5.9.5
Comment 1 David Redondo 2019-12-20 13:01:52 UTC
As of Spectacle 19.04 you can choose what happens if you press print screen when the window is already open: Open a new window, take a new screenshot or bring the current window to the foreground. See https://cgit.kde.org/spectacle.git/commit/?id=4b52871a674ac5c48919b0ef902db063f9afbd66
Please note that your using a two year old version.