mirror of
https://codeberg.org/adnano/wmenu.git
synced 2025-10-29 05:40:20 -04:00
Render menu after surface enter event
This fixes an issue where the first visible frame is blurry on fractional scale displays.
This commit is contained in:
parent
eec775fad7
commit
fc69aa6e2b
4 changed files with 38 additions and 23 deletions
2
menu.h
2
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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue