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
This commit is contained in:
Simon Effenberg
2015-01-08 23:43:11 +01:00
parent 0d0ed9b7ca
commit c7ff3255b8
7 changed files with 37 additions and 11 deletions

View File

@@ -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;
}