tPass argument when calling keybind function - spkp - Stacking wayland compositor
(HTM) git clone git://git.z3bra.org/spkp.git
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit e26f1e61fb72fb2608340ba987cf65e533767f8d
(DIR) parent 3ef3cdaa95f81c89cd08658815e3d309aebc282c
(HTM) Author: Willy Goiffon <dev@z3bra.org>
Date: Fri, 13 Nov 2020 09:49:10 +0100
Pass argument when calling keybind function
Diffstat:
M compositor.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/compositor.c b/compositor.c
t@@ -885,7 +885,7 @@ keybinding(struct state *server, uint32_t mod, uint32_t key, enum wlr_key_state
for (i=0; i<nkey; i++) {
if (keys[i].mod == CLEANMASK(mod) && keys[i].key == key) {
if (state == WLR_KEY_PRESSED)
- keys[i].func(server, NULL);
+ keys[i].func(server, &(keys[i].arg));
return 1;
}