emersion / emersion/slurp

feat: use pointer-constraints to contraint pointer once mouse is down

Open
#166 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
1.3k
Forks
75
PR merge metrics
No merged PRs in 30d

Description

When selecting a region, I sometimes move the mouse cursor onto another screen by moving past the screen's edge. This is especially common when trying to capture a border or corner of the screen.

The pointer-constraints protocol is usable to prevent this from happening: once the mouse button is pressed, prevent the mouse from moving onto other screens, since doing so produces bogus values.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.