aboutsummaryrefslogtreecommitdiff
path: root/menu.h
diff options
context:
space:
mode:
authoradnano <me@adnano.co>2025-03-01 07:04:00 -0500
committeradnano <me@adnano.co>2025-03-01 07:04:00 -0500
commitfc69aa6e2bccca461a0bd0c10b448b64ccda1d42 (patch)
tree98b05a54f9d150690702f224b79a651fa3660752 /menu.h
parenteec775fad7f7b090e6de2dbfe0c242129fddba41 (diff)
downloadwmenu-fc69aa6e2bccca461a0bd0c10b448b64ccda1d42.tar.gz
Render menu after surface enter event
This fixes an issue where the first visible frame is blurry on fractional scale displays.
Diffstat (limited to 'menu.h')
-rw-r--r--menu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/menu.h b/menu.h
index 8dcd99c..fdd9ad2 100644
--- a/menu.h
+++ b/menu.h
@@ -64,6 +64,7 @@ struct menu {
int promptw;
int left_arrow;
int right_arrow;
+ bool rendered;
char input[BUFSIZ];
size_t cursor;
@@ -85,6 +86,7 @@ void menu_destroy(struct menu *menu);
void menu_getopts(struct menu *menu, int argc, char *argv[]);
void menu_add_item(struct menu *menu, char *text);
void menu_sort_and_deduplicate(struct menu *menu);
+void menu_invalidate(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,