X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fmenuframe.c;fp=openbox%2Fmenuframe.c;h=076fe6efc295ff231405ac4c4bb6a7ab6668476d;hb=f163c46eaf01ced8405fa36a3bf4a5c488f0f5aa;hp=088986f83c6ea23bd5d90c2fe2c46c3b9b263cdb;hpb=f3285a3d0bf118ce0eba0014ea53b11f47d710d6;p=chaz%2Fopenbox diff --git a/openbox/menuframe.c b/openbox/menuframe.c index 088986f8..076fe6ef 100644 --- a/openbox/menuframe.c +++ b/openbox/menuframe.c @@ -1159,7 +1159,8 @@ void menu_frame_select(ObMenuFrame *self, ObMenuEntryFrame *entry, 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