mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
since we don't have any screens yet, there's no reason to conf_{,un}grab
here; just build keybindingq.
This commit is contained in:
parent
d1eadee922
commit
7cc1c7344f
3
conf.c
3
conf.c
@ -530,7 +530,6 @@ conf_bindname(struct conf *c, char *name, char *binding)
|
||||
current_binding->flags = name_to_kbfunc[i].flags;
|
||||
current_binding->argument = name_to_kbfunc[i].argument;
|
||||
current_binding->argtype |= ARG_INT;
|
||||
conf_grab(c, current_binding);
|
||||
TAILQ_INSERT_TAIL(&c->keybindingq, current_binding, entry);
|
||||
return;
|
||||
}
|
||||
@ -539,7 +538,6 @@ conf_bindname(struct conf *c, char *name, char *binding)
|
||||
current_binding->flags = 0;
|
||||
current_binding->argument.c = xstrdup(binding);
|
||||
current_binding->argtype |= ARG_CHAR;
|
||||
conf_grab(c, current_binding);
|
||||
TAILQ_INSERT_TAIL(&c->keybindingq, current_binding, entry);
|
||||
}
|
||||
|
||||
@ -555,7 +553,6 @@ conf_unbind(struct conf *c, struct keybinding *unbind)
|
||||
if ((key->keycode != 0 && key->keysym == NoSymbol &&
|
||||
key->keycode == unbind->keycode) ||
|
||||
key->keysym == unbind->keysym) {
|
||||
conf_ungrab(c, key);
|
||||
TAILQ_REMOVE(&c->keybindingq, key, entry);
|
||||
if (key->argtype & ARG_CHAR)
|
||||
free(key->argument.c);
|
||||
|
Loading…
Reference in New Issue
Block a user