[PATCH xserver] kdrive: Only enable threaded input if we have input devices
Peter Hutterer
peter.hutterer at who-t.net
Mon Jun 20 05:48:14 UTC 2016
On Tue, Jun 14, 2016 at 05:36:16PM -0700, Keith Packard wrote:
> 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 at keithp.com>
> ---
> hw/kdrive/src/kinput.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/hw/kdrive/src/kinput.c b/hw/kdrive/src/kinput.c
> index 473dc70..2c39624 100644
> --- a/hw/kdrive/src/kinput.c
> +++ b/hw/kdrive/src/kinput.c
> @@ -1305,7 +1305,8 @@ KdInitInput(void)
> KdKeyboardInfo *ki;
> struct KdConfigDevice *dev;
>
> - InputThreadPreInit();
> + if (kdConfigPointers || kdConfigKeyboards)
> + InputThreadPreInit();
>
> kdInputEnabled = TRUE;
>
> --
> 2.8.1
remote: Updating patchwork state for https://patchwork.freedesktop.org/project/Xorg/list/
remote: I: patch #93358 updated using rev fa7b70a9b895789ec57562bbba0bc052fc91d134.
remote: I: 1 patch(es) updated to state Accepted.
To git+ssh://whot@git.freedesktop.org/git/xorg/xserver
6f2a5b8..fa7b70a master -> master
Cheers,
Peter
More information about the xorg-devel
mailing list