summaryrefslogtreecommitdiff
path: root/Xi/opendev.c
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2007-08-01 03:29:12 +0300
committerDaniel Stone <daniel@fooishbar.org>2007-08-01 03:33:06 +0300
commitcd8e99e56ec5d02026e401cc15e0f8d75f2a4727 (patch)
treea38c51d2de56625d81bb6de582560c95406a3921 /Xi/opendev.c
parent0a31db14b7c7c21ef550dbcc73a9f649f3613cbe (diff)
Input: Don't enable devices when we open them
Thanks to Xi's braindead design, it's otherwise impossible to query input devices without enabling them. Hurrah.
Diffstat (limited to 'Xi/opendev.c')
-rw-r--r--Xi/opendev.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/Xi/opendev.c b/Xi/opendev.c
index 4b7b6a64f..0b0671d49 100644
--- a/Xi/opendev.c
+++ b/Xi/opendev.c
@@ -98,7 +98,6 @@ int
ProcXOpenDevice(ClientPtr client)
{
xInputClassInfo evbase[numInputClasses];
- Bool enableit = FALSE;
int j = 0;
int status = Success;
xOpenDeviceReply rep;
@@ -121,7 +120,6 @@ ProcXOpenDevice(ClientPtr client)
SendErrorToClient(client, IReqCode, X_OpenDevice, 0, BadDevice);
return Success;
}
- enableit = TRUE;
}
OpenInputDevice(dev, client, &status);
@@ -129,8 +127,6 @@ ProcXOpenDevice(ClientPtr client)
SendErrorToClient(client, IReqCode, X_OpenDevice, 0, status);
return Success;
}
- if (enableit && dev->inited && dev->startup)
- (void)EnableDevice(dev);
rep.repType = X_Reply;
rep.RepType = X_OpenDevice;