Fix slurp -o "selection cancelled" with touch inputs#141
Fix slurp -o "selection cancelled" with touch inputs#141stacyharper wants to merge 1 commit intoemersion:masterfrom
Conversation
|
Hm it seems we call this function on pointer release and on touch down… Shouldn't we call it on touch up instead? |
|
I tried to move this to touch_handle_up and it doesn't works as intended. |
c0a1e82 to
16c188f
Compare
16c188f to
531c4ab
Compare
|
We could move the call to But the problem is the case of |
|
Sorry, but I still don't understand what's peculiar about touch input that makes it different from pointer input here. |
|
I don't get it. We update the selectioned box on touch down because this is the only moment we can, and have to do so. |
|
The pointer codepath does not call |
|
Because we know where the pointer is before the user press any button. We don't know where the user finger is before it actually touch the screen. |
|
Gentle bump. Could this be reviewed? I continue to think the fix is good, even if it looks wrong with a first glance. |
We've already had a number of patches attempting to resolve this issue, and an upstream PR to slurp pending for quite a while. I think we need a solution in the meantime that would work even on the broken version of slurp (in case distros are behind once a fix is released). This version also copes with the fat-trembling-finger problem and will simply take a screenshot of the whole screen if the selection is too tiny to be reasonable (which may be an issue even in the fixed slurp). Ref: https://lists.sr.ht/~mil/sxmo-devel/patches/49367 Ref: https://lists.sr.ht/~mil/sxmo-devel/patches/49719 Ref: https://lists.sr.ht/~mil/sxmo-devel/patches/44258 Ref: emersion/slurp#140 Ref: emersion/slurp#141 -- Changes in v2: - select only one output (adapted from magdesign's patch earlier) - better error feedback Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
fixes: #140