mirror of
https://codeberg.org/adnano/wmenu.git
synced 2025-11-25 06:59:50 -05:00
Limit number of menu lines by item count
Limit the number of menu lines visible in line mode if there are less items than lines. This brings wmenu's behavior in line with dmenu's. Closes https://codeberg.org/adnano/wmenu/issues/64
This commit is contained in:
parent
0a38d45abb
commit
8fe04a0c99
4 changed files with 10 additions and 0 deletions
1
menu.h
1
menu.h
|
|
@ -86,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_calc_height(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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue