Bug 441667 - Spectacle can't capture for a particular combination of options
Summary: Spectacle can't capture for a particular combination of options
Status: RESOLVED FIXED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: 21.08.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Boudhayan Gupta
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-28 19:17 UTC by DeKay
Modified: 2023-02-11 14:25 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description DeKay 2021-08-28 19:17:05 UTC
SUMMARY

With Rectangular Region, No Delay, and "On Click" *deselected*, "Take a New Screenshot" causes the Spectacle window to go away and gives me my regular cursor, with no way that I can see to tell Spectacle to actually take the screenshot. I can tell from the console that it is still running in the background, waiting for something that can never happen.

If I select Alt-F2 and run spectacle again, the same problem happens and I get a second instance of spectacle running according to "ps -ef | grep spectacle"

Discussion here
https://www.reddit.com/r/kde/comments/na0zpo/ksnip_has_me_looking/

STEPS TO REPRODUCE
- Described in the summary.

Note that
- Full Screen capture area works fine with any combination of Delay and "On Click" selected or not
- Rectangular Region works fine with No Delay and "On Click" *selected*

EXPECTED RESULT
Spectacle should pin the corner of the capture area upon first click of the mouse and go from there.

SOFTWARE/OS VERSIONS
ArchLinux
X.Windows
KDE Plasma Version: 5.22.4
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Antonio Prcela 2021-11-01 16:29:57 UTC
Used same settings, can't reproduce.
Have you udpated KDE to 5.23.2 and Spectacle to 21.08.2?

Operating System: Manjaro Linux
KDE Plasma Version: 5.23.2
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.2
Kernel Version: 5.14.15-1-MANJARO (64-bit)
Graphics Platform: X11
Comment 2 DeKay 2021-11-13 15:15:36 UTC
(In reply to Antonio Prcela from comment #1)
> Used same settings, can't reproduce.
> Have you udpated KDE to 5.23.2 and Spectacle to 21.08.2?

Yes.  I am running Spectacle 21.08.02 on Frameworks 5.87.0 and KDE 5.23.3.  But your question got me to experiment some more.  The setting that cause the problem for me are:
- Area: Rectangular Region
- Delay: No Delay
- On Click: Not Selected
- Include Mouse Pointer: Not Selected
- Quit after manual Dave or Copy: Not Selected

BUT if I change the Delay
- Delay: 1 second

Then it works perfectly after the expected delay!
Comment 3 Bharadwaj Raju 2022-10-03 12:07:53 UTC
Can't reproduce unfortunately. I'm on Wayland, if that makes a difference.
Comment 4 DeKay 2022-12-17 14:47:09 UTC
(In reply to Bharadwaj Raju from comment #3)
> Can't reproduce unfortunately. I'm on Wayland, if that makes a difference.

Perhaps it does.  As stated, I'm on X.  I tried it on an up to date system and the same problem is still there.
Comment 5 DeKay 2023-01-28 17:48:51 UTC
(In reply to DeKay from comment #4)
> (In reply to Bharadwaj Raju from comment #3)
> > Can't reproduce unfortunately. I'm on Wayland, if that makes a difference.
> 
> Perhaps it does.  As stated, I'm on X.  I tried it on an up to date system
> and the same problem is still there.

I fired up a Wayland session today and this bug does not happen.  It indeed appears to be an X-only problem.
Comment 6 Noah Davis 2023-01-31 12:46:04 UTC
I see this was reported for version 21.08. A rewrite of the UI happened for version 23.04 and I can't reproduce this.

Here's what I tried on X11:

1. Launch Spectacle from Kickoff (Application Launcher).
2. Set No Delay, uncheck "Capture on click"
3. Do a Rectangular Region screenshot

The UI for taking a rectangular screenshot appears, I am able to make a selection and confirming the selection captures the selected region. Since this was reported for an older version, I'm marking this as fixed, but it can be reopened if it's still a problem for 23.04/git master.
Comment 7 DeKay 2023-02-11 14:25:38 UTC
(In reply to Noah Davis from comment #6)
> I see this was reported for version 21.08. A rewrite of the UI happened for
> version 23.04 and I can't reproduce this.
> 
> Here's what I tried on X11:
> 
> 1. Launch Spectacle from Kickoff (Application Launcher).
> 2. Set No Delay, uncheck "Capture on click"
> 3. Do a Rectangular Region screenshot
> 
> The UI for taking a rectangular screenshot appears, I am able to make a
> selection and confirming the selection captures the selected region. Since
> this was reported for an older version, I'm marking this as fixed, but it
> can be reopened if it's still a problem for 23.04/git master.

Sounds great!  I will test this out myself when Arch updates to 23.04 (at 22.12 RN).