summaryrefslogtreecommitdiffstats
path: root/source/dialogs
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-02-01 21:07:07 +0100
committerDave Davenport <qball@gmpclient.org>2017-02-01 21:07:40 +0100
commitf10b879cac73f509ad18c3346a18df2dc702a14a (patch)
tree2833a2289061509600218aba0fa85949215b7f48 /source/dialogs
parent8e64885c55b4fbe34be656592a54de5b7811be65 (diff)
Async pre-read 25 entries by default, to make it feel more snappy. Fixes #550
Diffstat (limited to 'source/dialogs')
-rw-r--r--source/dialogs/dmenu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/dialogs/dmenu.c b/source/dialogs/dmenu.c
index c4f056a7..63e5a189 100644
--- a/source/dialogs/dmenu.c
+++ b/source/dialogs/dmenu.c
@@ -635,7 +635,7 @@ int dmenu_switcher_dialog ( void )
async = FALSE;
}
if ( async ) {
- unsigned int pre_read = 0;
+ unsigned int pre_read = 25;
find_arg_uint("-async-pre-read", &pre_read);
async = get_dmenu_async ( pd, pre_read );
}
@@ -728,4 +728,5 @@ void print_dmenu_options ( void )
print_help_msg ( "-sep", "[char]", "Element separator.", "'\\n'", is_term );
print_help_msg ( "-input", "[filename]", "Read input from file instead from standard input.", NULL, is_term );
print_help_msg ( "-sync", "", "Force dmenu to first read all input data, then show dialog.", NULL, is_term );
+ print_help_msg ( "-async-pre-read", "[number]", "Read several entries blocking before switching to async mode", "25", is_term);
}