diff options
author | Daniel Stone <daniel@fooishbar.org> | 2007-08-01 03:29:12 +0300 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2007-08-01 03:33:06 +0300 |
commit | cd8e99e56ec5d02026e401cc15e0f8d75f2a4727 (patch) | |
tree | a38c51d2de56625d81bb6de582560c95406a3921 /hw/xfree86 | |
parent | 0a31db14b7c7c21ef550dbcc73a9f649f3613cbe (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 'hw/xfree86')
-rw-r--r-- | hw/xfree86/common/xf86Xinput.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/hw/xfree86/common/xf86Xinput.c b/hw/xfree86/common/xf86Xinput.c index dca4e3287..79422f725 100644 --- a/hw/xfree86/common/xf86Xinput.c +++ b/hw/xfree86/common/xf86Xinput.c @@ -204,17 +204,6 @@ OpenInputDevice(DeviceIntPtr dev, if (!dev->inited) ActivateDevice(dev); - if (!dev->public.on) { - if (EnableDevice(dev)) { - dev->startup = FALSE; - } - else { - ErrorF("couldn't enable device %s\n", dev->name); - *status = BadDevice; - return; - } - } - *status = Success; } |