From 1f221a73cf290ff509ef6c066ff692bb48f8625e Mon Sep 17 00:00:00 2001 From: adnano Date: Thu, 2 May 2024 18:45:49 -0400 Subject: Fix destruction of pool buffers --- menu.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'menu.h') diff --git a/menu.h b/menu.h index 6afdd7e..bfbc94a 100644 --- a/menu.h +++ b/menu.h @@ -1,9 +1,10 @@ #ifndef WMENU_MENU_H #define WMENU_MENU_H +#include +#include #include - -#include "pool-buffer.h" +#include // A menu item. struct item { @@ -48,9 +49,6 @@ struct menu { struct wl_context *context; - struct pool_buffer buffers[2]; - struct pool_buffer *current; - int width; int height; int line_height; @@ -77,7 +75,7 @@ struct menu { struct menu *menu_create(); void menu_getopts(struct menu *menu, int argc, char *argv[]); void menu_add_item(struct menu *menu, char *text); -void menu_process_items(struct menu *menu); +void menu_render_items(struct menu *menu); void menu_paste(struct menu *menu, const char *text, ssize_t len); void menu_keypress(struct menu *menu, enum wl_keyboard_key_state key_state, xkb_keysym_t sym); -- cgit v1.2.3