aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-11-06 18:29:23 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-11-06 18:30:05 +0000
commit9ce79e2ef0b0b19b06990302807d6c3b3a755e1e (patch)
treeab5f6821303de10a53f465599fc7e9df59b2a5f2 /input.c
parentconfig: mouse combos: set count=1 if user has omitted click count (diff)
config: add support for pipe-* actions in mouse bindings
Closes #183
Diffstat (limited to 'input.c')
-rw-r--r--input.c5
1 files changed, 3 insertions, 2 deletions
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);
}
}