fix: crash when reload_config
This commit is contained in:
@@ -3316,5 +3316,5 @@ int reload_config(const Arg *arg) {
|
|||||||
parse_config();
|
parse_config();
|
||||||
reset_option();
|
reset_option();
|
||||||
printstatus();
|
printstatus();
|
||||||
return 0;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3435,13 +3435,14 @@ keybinding(uint32_t state, bool locked, uint32_t mods, xkb_keysym_t sym,
|
|||||||
keycode == k->keysymcode.keycode.keycode3))) &&
|
keycode == k->keysymcode.keycode.keycode3))) &&
|
||||||
k->func) {
|
k->func) {
|
||||||
|
|
||||||
isbreak = k->func(&k->arg);
|
|
||||||
|
|
||||||
if (!k->ispassapply)
|
if (!k->ispassapply)
|
||||||
handled = 1;
|
handled = 1;
|
||||||
else
|
else
|
||||||
handled = 0;
|
handled = 0;
|
||||||
|
|
||||||
|
isbreak = k->func(&k->arg);
|
||||||
|
|
||||||
|
|
||||||
if (isbreak)
|
if (isbreak)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user