]> git.mdlowis.com Git - proto/labwc.git/commitdiff
input: run mousebind action only on button pressed
authorJens Peters <jp7677@gmail.com>
Tue, 11 Jun 2024 04:41:24 +0000 (06:41 +0200)
committerJohan Malm <johanmalm@users.noreply.github.com>
Thu, 13 Jun 2024 20:23:37 +0000 (21:23 +0100)
src/input/tablet.c

index d0c020541a22d1f78c6453e279a5bd79c709eda2..74a72488c87365a5c86c5b72c9f6b6f35d5c5ca0 100644 (file)
@@ -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) {