From ca317506c04bb1d6387af45db898329f647d89bc Mon Sep 17 00:00:00 2001 From: Jens Peters Date: Tue, 11 Jun 2024 06:41:24 +0200 Subject: [PATCH] input: run mousebind action only on button pressed --- src/input/tablet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input/tablet.c b/src/input/tablet.c index d0c02054..74a72488 100644 --- a/src/input/tablet.c +++ b/src/input/tablet.c @@ -470,7 +470,7 @@ handle_button(struct wl_listener *listener, void *data) if (tool && !is_down_mouse_emulation && surface) { idle_manager_notify_activity(tool->seat->seat); - if (button) { + if (button && ev->state == WLR_BUTTON_PRESSED) { struct view *view = view_from_wlr_surface(surface); struct mousebind *mousebind; wl_list_for_each(mousebind, &rc.mousebinds, link) {