about summary refs log tree commit diff stats
path: root/src/command
diff options
context:
space:
mode:
authorSimon Effenberg <savar@schuldeigen.de>2015-01-08 23:43:11 +0100
committerSimon Effenberg <savar@schuldeigen.de>2015-01-12 08:08:07 +0100
commitc7ff3255b8bd4bed2f825255a4fe28940db533b2 (patch)
tree8e474ace8ff803cd1c932a451d811a99d6a7cec7 /src/command
parent0d0ed9b7ca4b9055fece7ddc4e2430b900cbb355 (diff)
downloadprofani-tty-c7ff3255b8bd4bed2f825255a4fe28940db533b2.tar.gz
trying to block (and save cpu power) more dynamically
instead of blocking too long if inpblock is set to something like
500ms the input timeout is not set directly to inpblock but is
increasing dynamically from 0 to inpblock by a little algorithm

FIXME: the call from the win_* method to the ui_input_* method looks
wrong.. this causes a cross reference which shouldn't be
Diffstat (limited to 'src/command')
-rw-r--r--src/command/commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command/commands.c b/src/command/commands.c
index fba32b8b..5aae8fe5 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -3455,7 +3455,7 @@ cmd_inpblock(gchar **args, struct cmd_help_t help)
     if (_strtoi(value, &intval, 1, 1000) == 0) {
         cons_show("Input blocking set to %d milliseconds.", intval);
         prefs_set_inpblock(intval);
-        ui_input_nonblocking();
+        ui_input_nonblocking(FALSE);
     }
     return TRUE;
 }