[PATCH xserver 9/9] kdrive: Use threaded input
Peter Hutterer
peter.hutterer at who-t.net
Thu Dec 17 21:34:19 PST 2015
On Thu, Dec 17, 2015 at 04:11:44PM -0800, Keith Packard wrote:
> Signed-off-by: Keith Packard <keithp at keithp.com>
Acked-by: Peter Hutterer <peter.hutterer at who-t.net>
> ---
> hw/kdrive/src/kinput.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/hw/kdrive/src/kinput.c b/hw/kdrive/src/kinput.c
> index 8527a9e..446883b 100644
> --- a/hw/kdrive/src/kinput.c
> +++ b/hw/kdrive/src/kinput.c
> @@ -131,7 +131,7 @@ static void
> KdAddFd(int fd, int i)
> {
> KdNonBlockFd(fd);
> - SetNotifyFd(fd, KdNotifyFd, X_NOTIFY_READ, (void *) (intptr_t) i);
> + InputThreadRegisterDev(fd, KdNotifyFd, (void *) (intptr_t) i);
> }
>
> static void
> @@ -139,7 +139,7 @@ KdRemoveFd(int fd)
> {
> int flags;
>
> - RemoveNotifyFd(fd);
> + InputThreadUnregisterDev(fd);
> flags = fcntl(fd, F_GETFL);
> flags &= ~(FASYNC | NOBLOCK);
> fcntl(fd, F_SETFL, flags);
> @@ -1215,6 +1215,8 @@ KdInitInput(void)
> KdKeyboardInfo *ki;
> struct KdConfigDevice *dev;
>
> + InputThreadPreInit();
> +
> kdInputEnabled = TRUE;
>
> for (dev = kdConfigPointers; dev; dev = dev->next) {
> --
> 2.6.4
>
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
>
More information about the xorg-devel
mailing list