kdrive: set Activate/Deactivate grab for input devices (#21591)
X.Org Bug 21591 <http://bugs.freedesktop.org/show_bug.cgi?id=21591>
This commit is contained in:
parent
fdce58ca82
commit
0cea199eda
@ -915,6 +915,8 @@ KdAddKeyboard (KdKeyboardInfo *ki)
|
|||||||
return !Success;
|
return !Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ki->dixdev->deviceGrab.ActivateGrab = ActivateKeyboardGrab;
|
||||||
|
ki->dixdev->deviceGrab.DeactivateGrab = DeactivateKeyboardGrab;
|
||||||
RegisterOtherDevice(ki->dixdev);
|
RegisterOtherDevice(ki->dixdev);
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
@ -984,6 +986,8 @@ KdAddPointer (KdPointerInfo *pi)
|
|||||||
return BadDevice;
|
return BadDevice;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pi->dixdev->deviceGrab.ActivateGrab = ActivatePointerGrab;
|
||||||
|
pi->dixdev->deviceGrab.DeactivateGrab = DeactivatePointerGrab;
|
||||||
RegisterOtherDevice(pi->dixdev);
|
RegisterOtherDevice(pi->dixdev);
|
||||||
|
|
||||||
for (prev = &kdPointers; *prev; prev = &(*prev)->next);
|
for (prev = &kdPointers; *prev; prev = &(*prev)->next);
|
||||||
|
Loading…
Reference in New Issue
Block a user