Bug 401647 - Don't allow launching a second instance in rectangular region mode
Summary: Don't allow launching a second instance in rectangular region mode
Status: RESOLVED FIXED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: 18.08.3
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Boudhayan Gupta
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-02 11:26 UTC by Alan Pope
Modified: 2019-01-06 14:38 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 19.04.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Pope 2018-12-02 11:26:49 UTC
SUMMARY

I often take screenshots of a region with Shift-PrtSc. Usually it works fine. Thanks, I love Spectacle. 

However, it seems to get wedged if I launch it twice. I realise I probably shouldn't do this, but sometimes it takes a second or two for the dialog to appear, and I don't know if I have pressed Shift-PrtSc correctly, so press again. I end up in a situation where I can't exit nor take screenshots. Like the two screenshot tools are fighting for ownership of my keypresses. I have to drop to a tty and kill the spectacle process to get control of the desktop back.


STEPS TO REPRODUCE
1. Ensure Shift-PrtSc is bound to launching Spectacle and taking a region screenshot
2. Press Shift-PrtSc twice
3. Press Escape, or select an are and press enter

OBSERVED RESULT

No screenshots are taken
It's not possible to exit Spectacle

EXPECTED RESULT

Either:

One instance of spectacle runs and prevents me launching a second screenshot.
or
Two instances launch enabling me to take a screenshot of the spectacle process, where keypresses go to the most recent spectacle instance.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  5.12.7
(available in About System)
KDE Plasma Version: 5.12.7
KDE Frameworks Version: 5.52.0
Qt Version:  5.11.2

ADDITIONAL INFORMATION

I <3 spectacle.
Comment 1 Nate Graham 2018-12-07 23:09:52 UTC
> One instance of spectacle runs and prevents me launching a second screenshot.
or

This works when Spectacle is launched in non-rectangular-region-mode.

> Two instances launch enabling me to take a screenshot of the spectacle process, where keypresses go to the most recent spectacle instance.

This behavior is undefined and we have people asking for all three possible options. Ultimately I suspect we'll make it a user-configurable option.

As a workaround, you should be able to draw a box in rectangular region mode and double-click in it.
Comment 2 Nate Graham 2019-01-06 14:38:56 UTC
Looks like the recent Rectangular Region overhaul in 19.04 fixed this!