mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-30 21:53:25 +00:00
input: add support for XIAllDevices and XIAllMasterDevices passive grabs.
These grabs are suported through two fake devices inputInfo.all_devices and inputInfo.all_master_devices. These devices are not part of the device list and are only initialised for their device id, nothing else. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
f00cf76751
commit
a66686a83e
5 changed files with 57 additions and 4 deletions
12
dix/events.c
12
dix/events.c
|
|
@ -248,6 +248,18 @@ static Bool CheckPassiveGrabsOnWindow(WindowPtr pWin,
|
|||
*
|
||||
* inputInfo.numDevices
|
||||
* Total number of devices.
|
||||
*
|
||||
* inputInfo.all_devices
|
||||
* Virtual device used for XIAllDevices passive grabs. This device is
|
||||
* not part of the inputInfo.devices list and mostly unset except for
|
||||
* the deviceid. It exists because passivegrabs need a valid device
|
||||
* reference.
|
||||
*
|
||||
* inputInfo.all_master_devices
|
||||
* Virtual device used for XIAllMasterDevices passive grabs. This device
|
||||
* is not part of the inputInfo.devices list and mostly unset except for
|
||||
* the deviceid. It exists because passivegrabs need a valid device
|
||||
* reference.
|
||||
*/
|
||||
InputInfo inputInfo;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue