spkp

Stacking wayland compositor
git clone git://git.z3bra.org/sp:kp.git
Log | Files | Refs

commit e26f1e61fb72fb2608340ba987cf65e533767f8d
parent 3ef3cdaa95f81c89cd08658815e3d309aebc282c
Author: Willy Goiffon <dev@z3bra.org>
Date:   Fri, 13 Nov 2020 09:49:10 +0100

Pass argument when calling keybind function

Diffstat:
Mcompositor.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compositor.c b/compositor.c @@ -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; }