Bug 415391 - Pressing PrintScreen when Spectacle is open doesn't work
Summary: Pressing PrintScreen when Spectacle is open doesn't work
Status: RESOLVED FIXED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Boudhayan Gupta
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-20 12:16 UTC by Shriramana Sharma
Modified: 2019-12-20 13:01 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 19.04.0
Sentry Crash Report:


Attachments

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