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:
Daniel Eklöf 2020-04-04 11:57:33 +02:00
parent 210c0ee5cd
commit 2344f153d9
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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) {