From 9ce79e2ef0b0b19b06990302807d6c3b3a755e1e Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Fri, 6 Nov 2020 19:29:23 +0100 Subject: config: add support for pipe-* actions in mouse bindings Closes #183 --- input.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'input.c') diff --git a/input.c b/input.c index 8140e250..60780dc9 100644 --- a/input.c +++ b/input.c @@ -424,6 +424,7 @@ convert_mouse_binding(struct seat *seat, .mods = conf_modifiers_to_mask(seat, &conf_binding->modifiers), .button = conf_binding->button, .count = conf_binding->count, + .pipe_argv = conf_binding->pipe.argv, }; tll_push_back(seat->mouse.bindings, binding); } @@ -1628,7 +1629,7 @@ wl_pointer_button(void *data, struct wl_pointer *wl_pointer, if (match != NULL) { seat->mouse.consumed = execute_binding( - seat, term, match->action, NULL, serial); + seat, term, match->action, match->pipe_argv, serial); } } @@ -1661,7 +1662,7 @@ wl_pointer_button(void *data, struct wl_pointer *wl_pointer, if (match != NULL) { seat->mouse.consumed = execute_binding( - seat, term, match->action, NULL, serial); + seat, term, match->action, match->pipe.argv, serial); } } -- cgit v1.3