X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fmenu.c;h=6a217fc662a4f6a7c1ce1034d52130eb9405e6a4;hb=22a17d3a28603637cf9259d050c19e8090d7ab2f;hp=3fcf3e87a25016963192124323642cfa798ccf3f;hpb=24df4baa6ba7bb61e4b954c22cbed73b99143cea;p=chaz%2Fopenbox diff --git a/openbox/menu.c b/openbox/menu.c index 3fcf3e87..6a217fc6 100644 --- a/openbox/menu.c +++ b/openbox/menu.c @@ -327,6 +327,15 @@ ObMenu* menu_new(const gchar *name, const gchar *title, g_hash_table_replace(menu_hash, self->name, self); + /* Each menu has a single more_menu. When the menu spills past what + can fit on the screen, a new menu frame entry is created from this + more_menu, and a new menu frame for the submenu is created for this + menu, also pointing to the more_menu. + + This can be done multiple times using the same more_menu. + + more_menu->more_menu will always be NULL, since there is only 1 for + each menu. */ self->more_menu = g_new0(ObMenu, 1); self->more_menu->name = _("More..."); self->more_menu->title = _("More...");