Pipemenu, fix so both inline and stand alone work

This commit is contained in:
Droc 2024-07-19 17:18:31 -05:00
parent 3be8fe25f3
commit 1419c2bbc2
4 changed files with 114 additions and 51 deletions

View file

@ -27,6 +27,12 @@ struct menu_scene {
struct scaled_font_buffer *buffer;
};
enum menuitem_type {
LAB_MENU_ITEM = 0,
LAB_MENU_SEPARATOR_LINE,
LAB_MENU_TITLE,
};
struct menuitem {
struct wl_list actions;
char *execute;
@ -34,6 +40,7 @@ struct menuitem {
struct menu *parent;
struct menu *submenu;
bool selectable;
enum menuitem_type type;
int height;
int native_width;
struct wlr_scene_tree *tree;