kdrive: Only enable threaded input if we have input devices
When there aren't any devices, the input thread is going to be pretty lonely, so don't bother to even start it. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
6f2a5b8cdf
commit
fa7b70a9b8
|
@ -1305,7 +1305,8 @@ KdInitInput(void)
|
|||
KdKeyboardInfo *ki;
|
||||
struct KdConfigDevice *dev;
|
||||
|
||||
InputThreadPreInit();
|
||||
if (kdConfigPointers || kdConfigKeyboards)
|
||||
InputThreadPreInit();
|
||||
|
||||
kdInputEnabled = TRUE;
|
||||
|
||||
|
|
Loading…
Reference in New Issue