mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-15 09:10:37 +01:00
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
1 changed files with 2 additions and 1 deletions
|
|
@ -1305,7 +1305,8 @@ KdInitInput(void)
|
|||
KdKeyboardInfo *ki;
|
||||
struct KdConfigDevice *dev;
|
||||
|
||||
InputThreadPreInit();
|
||||
if (kdConfigPointers || kdConfigKeyboards)
|
||||
InputThreadPreInit();
|
||||
|
||||
kdInputEnabled = TRUE;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue