xinput2 system-wide event listening

2015-06-11 Thread anton lancevič
Hi, Does xinput2 provide some facility to listen for device in system-wide manner, i.e. listen to device events regardless of focused window or other x server clients listening to it? Or maybe there is other way to get hotkey events regardless of focused window? ___

XSendEvent with XIDeviceEvent

2015-07-17 Thread anton lancevič
Hi, is it possible to fill up XEvent.XGenericEventCookie.data with XIDeviceEvent in a way it wil be sendable with XSendEvent? Could you please provide an example? I need to send mouse button press and release synthetic events but with specified device. Regards, Anton L.