Skip to content

Conversation

@m-bartlett
Copy link

@m-bartlett m-bartlett commented Aug 15, 2023

Adds -C which 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.

slurp

@heroin-moose
Copy link

Bump? This is a life safer for me.

@markg85
Copy link

markg85 commented Apr 13, 2025

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) {
Copy link
Collaborator

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:
Copy link
Collaborator

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) {
Copy link
Collaborator

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

@tmccombs tmccombs added the enhancement New feature or request label Sep 5, 2025
Co-authored-by: Thayne McCombs <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants