mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-07 04:06:07 -05:00
input: hardcoded left mouse button handler requires click-count <= 3
This enables user mappings for the left mouse button with click count > 3 I.e. it is now possible to create custom quad-click mappings (except we don't yet support this in footrc).
This commit is contained in:
parent
210c0ee5cd
commit
2344f153d9
1 changed files with 1 additions and 1 deletions
2
input.c
2
input.c
|
|
@ -1174,7 +1174,7 @@ wl_pointer_button(void *data, struct wl_pointer *wl_pointer,
|
|||
|
||||
switch (state) {
|
||||
case WL_POINTER_BUTTON_STATE_PRESSED: {
|
||||
if (button == BTN_LEFT) {
|
||||
if (button == BTN_LEFT && wayl->mouse.count <= 3) {
|
||||
selection_cancel(term);
|
||||
|
||||
switch (wayl->mouse.count) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue