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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user