X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=openbox%2Fmenuframe.c;h=2010bf8fe4289b799ff96c3d422d41ee92c4245d;hb=a3b4b4aa1ac0e8c16855e3070a20b74e01d0d000;hp=6a25a9aece93d8daa1bbc627f3e6257bfcfaee20;hpb=fbc7607fbd1a380428a53094e727ac7631871bd4;p=chaz%2Fopenbox diff --git a/openbox/menuframe.c b/openbox/menuframe.c index 6a25a9ae..2010bf8f 100644 --- a/openbox/menuframe.c +++ b/openbox/menuframe.c @@ -401,6 +401,7 @@ static void menu_entry_frame_render(ObMenuEntryFrame *self) text_a->texture[0].data.text.string = self->entry->data.normal.label; if (self->entry->data.normal.shortcut && (self->frame->menu->show_all_shortcuts || + self->entry->data.normal.shortcut_always_show || self->entry->data.normal.shortcut_position > 0)) { text_a->texture[0].data.text.shortcut = TRUE; @@ -416,6 +417,7 @@ static void menu_entry_frame_render(ObMenuEntryFrame *self) sub = self->entry->data.submenu.submenu; text_a->texture[0].data.text.string = sub ? sub->title : ""; if (sub->shortcut && (self->frame->menu->show_all_shortcuts || + sub->shortcut_always_show || sub->shortcut_position > 0)) { text_a->texture[0].data.text.shortcut = TRUE; @@ -1203,7 +1205,7 @@ void menu_entry_frame_execute(ObMenuEntryFrame *self, guint state) func(entry, frame, client, state, data); else actions_run_acts(acts, OB_USER_ACTION_MENU_SELECTION, - state, -1, -1, OB_FRAME_CONTEXT_NONE, client); + state, -1, -1, 0, OB_FRAME_CONTEXT_NONE, client); } }