Revert "dix: when disabling a device, release all buttons and keys"

This reverts commit 90299556.

The commit being reverted triggered a segfault on server shutdown when a
device posts raw events after the root windows are forced to NULL.

https://lists.debian.org/debian-x/2012/05/msg00240.htmlSigned-off-by: Jeremy Huddleston Sequoia's avatarJeremy Huddleston <jeremyhu@apple.com>
parent f012f0c4
......@@ -432,8 +432,6 @@ DisableDevice(DeviceIntPtr dev, BOOL sendevent)
if (*prev != dev)
return FALSE;
ReleaseButtonsAndKeys(dev);
/* float attached devices */
if (IsMaster(dev)) {
for (other = inputInfo.devices; other; other = other->next) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment