all repos — openbox @ f163c46eaf01ced8405fa36a3bf4a5c488f0f5aa

openbox fork - make it a bit more like ryudo

Fix a crash when moving into a menu on top of a separator and nothing is selected
Dana Jansens danakj@orodu.net
commit

f163c46eaf01ced8405fa36a3bf4a5c488f0f5aa

parent

f3285a3d0bf118ce0eba0014ea53b11f47d710d6

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

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

@@ -1159,7 +1159,8 @@ selected before */

if (entry && entry->entry->type == OB_MENU_ENTRY_TYPE_SEPARATOR) entry = old; - if (old == entry && (old->entry->type != OB_MENU_ENTRY_TYPE_SUBMENU)) + if (old == entry && + (!old || old->entry->type != OB_MENU_ENTRY_TYPE_SUBMENU)) return; /* if the user left this menu but we have a submenu open, move the