Commit graph

8 commits

Author SHA1 Message Date
adnano
41b2e8b1e1 menu: Avoid adding zero-size pages
Ensure that pages always have at least one item, even if that item is
too big to fit on any page.
2024-03-25 08:20:36 -04:00
sewn
9e9284666c port dmenu password patch 2024-03-17 07:33:55 -04:00
adnano
6ad7a303ef Don't destroy wl_data_offer twice
The data offer is destroyed after it is used. There is no need to
destroy it again.

This also fixes an issue where calling wl_data_offer_destroy with a NULL
data offer would segfault.
2024-03-17 07:01:23 -04:00
adnano
f7e6e0b4bf Free memory associated with the menu on exit 2024-03-02 11:31:13 -05:00
adnano
b247119ab3 Rename text_len to input_len 2024-03-02 07:32:43 -05:00
adnano
bbfbf8f36c Revert "Simplify movewordedge"
This reverts commit 8bcad262a4.
2024-02-27 12:00:10 -05:00
adnano
0db7efe232 Simplify read_menu_items 2024-02-27 11:34:17 -05:00
adnano
e8782db9c8 Move menu and rendering logic into separate files 2024-02-27 11:23:12 -05:00