Bug 374770 - Take multiple screenshots if Print Screen is pressed more than once
Summary: Take multiple screenshots if Print Screen is pressed more than once
Status: RESOLVED FIXED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Boudhayan Gupta
URL: https://phabricator.kde.org/T9855
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-08 19:39 UTC by smihael
Modified: 2019-02-22 21:17 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed 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 smihael 2017-01-08 19:39:11 UTC
Spectacle catches screenshot only on the first press of the Print Screen shortcut. Consecutive key presses do not result in starting a new instance of Spectacle with the new screenshot as one would have expected (old behaviour present in KSnapshot). Instead Print Screen key selects the menu with different options for a screenshot (rectangular region, window, fullscreen).

A new screenshot can only be taken when Spectacle is closed (after the screenshot has been saved).
Comment 1 Nate Graham 2018-01-31 05:06:35 UTC
*** Bug 382640 has been marked as a duplicate of this bug. ***
Comment 2 Nate Graham 2019-02-22 21:17:24 UTC
Git commit 4b52871a674ac5c48919b0ef902db063f9afbd66 by Nate Graham, on behalf of David Redondo.
Committed on 22/02/2019 at 21:17.
Pushed by ngraham into branch 'master'.

[WIP] Add option to configure what happens if the Print key is pressed while Spectacle is already running

Summary:
Adds options to configure what happens if the Print key is pressed while Spectacle is already running as discussed in T9855.
Taking a new screenshot and opening a new Instance are working. If already two Instances are open only one new one will be created.
Focusing the window doesn't work it only gets marked in the panel.
Also when in a second instance the option is changed it doesn't affect the other instances altough the spectaclerc is changed.
I also need some help with the strings as currently the description is very long and not good but I couldn't think of anything suitable:
{F6623755}

Closes T9855
Related: bug 383897, bug 399760
FIXED-IN: 19.04.0

Reviewers: #spectacle, #vdg, davidedmundson, ngraham

Reviewed By: #spectacle, #vdg, ngraham

Subscribers: davidedmundson, zzag, abetts, ngraham, #spectacle

Tags: #spectacle

Maniphest Tasks: T9855

Differential Revision: https://phabricator.kde.org/D19153

M  +23   -0    src/Gui/SettingsDialog/GeneralOptionsPage.cpp
M  +2    -0    src/Gui/SettingsDialog/GeneralOptionsPage.h
M  +20   -0    src/SpectacleConfig.cpp
M  +10   -1    src/SpectacleConfig.h
M  +16   -0    src/SpectacleCore.cpp

https://commits.kde.org/spectacle/4b52871a674ac5c48919b0ef902db063f9afbd66