all repos — openbox @ 7b06426b51dd81b1c1eacd67d8edb2976ea10456

openbox fork - make it a bit more like ryudo

dont lose the menu selection while puttin the mouse over a separator (properly)
Dana Jansens danakj@orodu.net
commit

7b06426b51dd81b1c1eacd67d8edb2976ea10456

parent

d298cfb786d84ad686a51ad72133a232af39bf85

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

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

@@ -617,12 +617,12 @@ {

ObMenuEntryFrame *old = self->selected; ObMenuFrame *oldchild = self->child; + if (entry && entry->entry->type == OB_MENU_ENTRY_TYPE_SEPARATOR) + entry = old; + if (old == entry) return; - if (entry && entry->entry->type != OB_MENU_ENTRY_TYPE_SEPARATOR) - self->selected = entry; - else - self->selected = NULL; + self->selected = entry; if (old) menu_entry_frame_render(old);