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:
Keith Packard 2016-06-14 17:36:16 -07:00 committed by Peter Hutterer
parent 6f2a5b8cdf
commit fa7b70a9b8
1 changed files with 2 additions and 1 deletions

View File

@ -1305,7 +1305,8 @@ KdInitInput(void)
KdKeyboardInfo *ki;
struct KdConfigDevice *dev;
InputThreadPreInit();
if (kdConfigPointers || kdConfigKeyboards)
InputThreadPreInit();
kdInputEnabled = TRUE;