[PATCH xserver 9/9] kdrive: Use threaded input
Keith Packard
keithp at keithp.com
Thu Dec 17 16:11:44 PST 2015
Signed-off-by: Keith Packard <keithp at keithp.com>
---
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
More information about the xorg-devel
mailing list