wayland: dmenu: prevent window from being displayed until we have loaded at least one entry
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Before this patch, an empty window were in some cases displayed, despite --no-run-if-empty being used, if stdin took too long to close (i.e. if the application/script generating the dmenu input were too slow too finish). Example: python -c "import time; time.sleep(2)" | fuzzel --dmenu --no-run-if-empty Fix by preventing the wayland backend from refreshing itself until marked as ready to display. This happens as soon as some, or all, entries have been loaded.
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Trailers
- Note: this only applies to '--dmenu --no-run-if-empty'
Diff stats
4 files+22 added−3 removed
- other:+22 added−3 removed