[PATCH xserver 9/9] kdrive: Use threaded input
Keith Packard
keithp at keithp.com
Wed May 11 20:54:58 UTC 2016
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 b415a86..4119b08 100644
--- a/hw/kdrive/src/kinput.c
+++ b/hw/kdrive/src/kinput.c
@@ -146,7 +146,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
@@ -154,7 +154,7 @@ KdRemoveFd(int fd)
{
int flags;
- RemoveNotifyFd(fd);
+ InputThreadUnregisterDev(fd);
flags = fcntl(fd, F_GETFL);
flags &= ~(FASYNC | NOBLOCK);
fcntl(fd, F_SETFL, flags);
@@ -1306,6 +1306,8 @@ KdInitInput(void)
KdKeyboardInfo *ki;
struct KdConfigDevice *dev;
+ InputThreadPreInit();
+
kdInputEnabled = TRUE;
for (dev = kdConfigPointers; dev; dev = dev->next) {
--
2.8.0.rc3
More information about the xorg-devel
mailing list