Commit graph

11 commits

Author SHA1 Message Date
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
3ad4b5ca3f Simplify render_menu 2024-11-08 15:28:11 -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
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
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
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
e8782db9c8 Move menu and rendering logic into separate files 2024-02-27 11:23:12 -05:00