Drawing menus on demand, reordering functions

This commit is contained in:
phillbush
2020-07-29 11:37:38 -03:00
parent 15362de42b
commit 3d8536642e
2 changed files with 146 additions and 145 deletions

View File

@@ -77,6 +77,7 @@ struct Menu {
struct Item *list; /* list of items contained by the menu */
struct Item *selected; /* item currently selected in the menu */
int x, y, w, h; /* menu geometry */
int drawn; /* whether the menu was already drawn */
unsigned level; /* menu level relative to root */
Window win; /* menu window to map on the screen */
};