mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-02-05 04:06:28 -05:00
fix: crash when reload_config
This commit is contained in:
parent
91f4604199
commit
fa4eb322b6
2 changed files with 4 additions and 3 deletions
|
|
@ -3316,5 +3316,5 @@ int reload_config(const Arg *arg) {
|
|||
parse_config();
|
||||
reset_option();
|
||||
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))) &&
|
||||
k->func) {
|
||||
|
||||
isbreak = k->func(&k->arg);
|
||||
|
||||
if (!k->ispassapply)
|
||||
handled = 1;
|
||||
else
|
||||
handled = 0;
|
||||
|
||||
isbreak = k->func(&k->arg);
|
||||
|
||||
|
||||
if (isbreak)
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue