-
Notifications
You must be signed in to change notification settings - Fork 68
Add option flag to support re-selecting until Return key is pressed #138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
Bump? This is a life safer for me. |
|
Ohh there's a PR for this!! Awesome! But why the holdup? 2023.. what's missing before it can be merged? |
| uint32_t time, wl_fixed_t surface_x, wl_fixed_t surface_y) { | ||
| struct slurp_seat *seat = data; | ||
| // the places the cursor moved away from are also dirty | ||
| if (seat->pointer_selection.has_selection) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this removed?
| } | ||
| break; | ||
|
|
||
| case XKB_KEY_Return: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if return is hit while you are currently dragging a selection? Should we then store the current selection in the result?
|
|
||
| case WL_KEYBOARD_KEY_STATE_RELEASED: | ||
| if (keysym == XKB_KEY_space) { | ||
| switch (keysym) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't necessarily a bad change, but it seems unrelated to the rest of this PR
Co-authored-by: Thayne McCombs <[email protected]>
Adds
-Cwhich prevents slurp from exiting immediately once the rectangle drag is released. The rectangle may be re-selected, and selection is ended by pressing the Return key. The intent of this feature is to enable users to redo a selection if the first attempt was unsatisfactory.