adnano
8fe04a0c99
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
2025-11-18 20:03:22 -05:00
adnano
fc69aa6e2b
Render menu after surface enter event
...
This fixes an issue where the first visible frame is blurry on
fractional scale displays.
2025-03-01 07:04:00 -05:00
M Stoeckl
0947765fc9
Only call render_menu once per frame
...
An actual surface is not needed to estimate font sizes; a 1x1 image
will do, as long as the cairo context has the same options.
2024-11-01 23:33:53 +00:00
M Stoeckl
260eaba88e
Optimize menu sorting
...
Sorting and deduplicating elements after all items have been registered
improves the time complexity of constructing the item list from O(n^2)
to O(n log n). On a system with about 4000 menu items, this reduces
startup time from about 0.21 seconds to 0.13 seconds.
2024-10-31 09:30:09 -04:00
adnano
7d717b3696
Streamline menu callbacks
2024-06-09 20:30:58 -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
adnano
cf6f5b9d06
Support xdg_activation_v1 protocol
2024-04-07 08:51:57 -04:00
sewn
9e9284666c
port dmenu password patch
2024-03-17 07:33:55 -04:00
adnano
f7e6e0b4bf
Free memory associated with the menu on exit
2024-03-02 11:31:13 -05:00
adnano
ff4d1f8f8e
Fix output selection with -o flag
2024-03-01 20:54:12 -05:00
adnano
e8782db9c8
Move menu and rendering logic into separate files
2024-02-27 11:23:12 -05:00