diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-05-12 16:09:35 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-05-16 12:20:58 +1000 |
commit | 273890924b8ed6f8b7949c0322c8258b9e6f8630 (patch) | |
tree | aaccdf172e29a5b9eedba3401d73e91241a1d124 /include | |
parent | 033a2b12fcd02fa9a2c2f20a352bec0a43074512 (diff) |
input: reduce the number of superfluous hierarchy events
There's only two reasons for hierarchy events:
- device is added, removed, etc. In this case we want to send the event as
it happens.
- devices are added in a XIChangeDeviceHierarchy request. In this case we
only want one event cumulating all changes.
Diffstat (limited to 'include')
-rw-r--r-- | include/input.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/include/input.h b/include/input.h index e3509a904..44990a0d5 100644 --- a/include/input.h +++ b/include/input.h @@ -228,13 +228,16 @@ extern _X_EXPORT DeviceIntPtr AddInputDevice( Bool /*autoStart*/); extern _X_EXPORT Bool EnableDevice( - DeviceIntPtr /*device*/); + DeviceIntPtr /*device*/, + BOOL /* sendevent */); extern _X_EXPORT Bool ActivateDevice( - DeviceIntPtr /*device*/); + DeviceIntPtr /*device*/, + BOOL /* sendevent */); extern _X_EXPORT Bool DisableDevice( - DeviceIntPtr /*device*/); + DeviceIntPtr /*device*/, + BOOL /* sendevent */); extern int InitAndStartDevices(void); @@ -243,7 +246,8 @@ extern void CloseDownDevices(void); extern void UndisplayDevices(void); extern _X_EXPORT int RemoveDevice( - DeviceIntPtr /*dev*/); + DeviceIntPtr /*dev*/, + BOOL /* sendevent */); extern _X_EXPORT int NumMotionEvents(void); |