emersion / slurp

Select a region in a Wayland compositor

Home Page:https://wayland.emersion.fr/slurp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Disable Shift key when current selection is a predefined rectangle

mkrasnitski opened this issue · comments

Pressing Shift while hovering over a predefined rectangle results in weird behavior where the anchor position is taken to be the top left of the screen (the point [0, 0]), and the cursor position defines the other corner. Moving the cursor re-highlights the predefined rectangle again.

One idea for a fix is to allow Shift only while the pointer button is pressed/moving. In other words, the current selection is guaranteed not to be a predefined rectangle.