emersion / slurp

Select a region in a Wayland compositor
https://wayland.emersion.fr/slurp
MIT License
956 stars 57 forks source link

Clicking outside all rectangles should cancel #86

Closed RagnarGrootKoerkamp closed 3 years ago

RagnarGrootKoerkamp commented 3 years ago

When using slurp with sway with multiple monitors to screenshot a single window, the following feels unintuive to me:

Expected behavior: slurp cancels when clicking outside all rectangles Actual behavior: slurp selects the last hovered rectangle when clicking outside all rectangles

The fix is probably to explicitly clear any pending selection when the mouse moves to an area not covered by any rectangles.