Bug 392310 - Rectangular region: Double click to take screenshot does not work when applied outside selected region
Summary: Rectangular region: Double click to take screenshot does not work when applie...
Status: RESOLVED INTENTIONAL
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: 21.12.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Boudhayan Gupta
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-25 13:28 UTC by Patrick Silva
Modified: 2023-11-22 12:29 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2018-03-25 13:28:58 UTC
I'm testing 18.04 beta on Arch Linux.
After I select a rectangular region, spectacle shows a message on bottom of the screen saying that I can use double click or press enter to take the screenshot.
Double click only works if applied in selected region. Double click outside selected region does nothing.
Double click on selected region after double click outside it also does nothing.
Comment 1 null 2018-03-25 13:37:15 UTC
Thanks for the report, can confirm. In general the rectangular region selector seems to have many issues, maybe we should replace it entirely some day instead of putting more work into it…

> Double click outside selected region does nothing.

The first click (press down) will already start a new selection rectangle, but as the button is released immediately, this rectangle is invalid. We still show the old rectangle, but remember the invalid one.

I guess if on button release the rectangle is too small, it should simply be discarded.
Comment 2 Noah Davis 2023-11-22 12:29:27 UTC
> Double click only works if applied in selected region. Double click outside selected region does nothing.

This is intentional. Whether it should stay that way, I'm not 100% sure, but I think it's fine. It makes a certain amount of sense that only double clicking on the selection would accept the selection like when double clicking a file to open it.

> Double click on selected region after double click outside it also does nothing.

This seems to be fixed.