Commit graph

20 commits

Author SHA1 Message Date
Galen Abell
b341aaba1d Wrap selection at the top/bottom of the list
Adds selection wrapping, such that pressing up at the top of the list
will select the last item, and pressing down at the bottom of the list
will select the first item. Additionally, cursor movement is now
exclusively handled by Left/Right and selection movement is exclusively
handled by Up/Down, as the new wrapping behavior would prevent cursor
movement from ever triggering.
2024-08-03 12:36:39 +02:00
adnano
7d717b3696 Streamline menu callbacks 2024-06-09 20:30:58 -04:00
adnano
30abca4f30 Don't ignore stdin in password mode
This makes password mode work for wmenu and wmenu-run without special
cases.
2024-05-05 10:13:01 -04:00
adnano
15d7c7bcc2 Revert "Remove wmenu -P flag"
This reverts commit c05ab7520b.
2024-05-04 21:44:59 -04:00
adnano
c05ab7520b Remove wmenu -P flag
This flag causes some issues with wmenu-run. It will be revisited in the
next release.
2024-05-04 21:41:21 -04:00
adnano
8f19d6a8d2 wmenu-run: Populate items from PATH 2024-05-03 19:10:28 -04:00
adnano
41e8599392 Add wmenu-run executable 2024-05-02 21:39:54 -04:00
adnano
1f221a73cf Fix destruction of pool buffers 2024-05-02 18:45:49 -04:00
adnano
6284eea24b Separate menu state from Wayland state 2024-05-02 17:03:07 -04:00
adnano
6a39269d2e Drop wmenu -x option 2024-05-02 14:44:09 -04:00
sewn
e4c4627eeb make menu height accurate to dwm, dmenu, and dwl's bar patch 2024-04-14 17:22:09 -04:00
adnano
cf6f5b9d06 Support xdg_activation_v1 protocol 2024-04-07 08:51:57 -04:00
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