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
6f9e220498
commit
b1b5ec45c1
|
@ -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