all repos — openbox @ e4e7c2be52ee1a0b75d9d2feff57fdc992fedb9b

openbox fork - make it a bit more like ryudo

Fix crash when keyboard map changes and no keybindings exist.

Don't assume old tree is non-null and start rebinding it.
Dana Jansens danakj@orodu.net
commit

e4e7c2be52ee1a0b75d9d2feff57fdc992fedb9b

parent

c885c9a676e4860a68f0bdce4b926902f6597ebb

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M openbox/keyboard.copenbox/keyboard.c

@@ -313,7 +313,8 @@ KeyBindingTree *old;

old = keyboard_firstnode; keyboard_firstnode = NULL; - node_rebind(old); + if (old) + node_rebind(old); tree_destroy(old); set_curpos(NULL);