]> Dogcows Code - chaz/openbox/blobdiff - openbox/menuframe.c
add shortcuts to add/remove desktops in the client list menus.
[chaz/openbox] / openbox / menuframe.c
index 2abd87073190cb39065cb909128a0d1062d57617..2010bf8fe4289b799ff96c3d422d41ee92c4245d 100644 (file)
@@ -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;
This page took 0.021246 seconds and 4 git commands to generate.