mirror of
https://gitlab.freedesktop.org/xorg/proto/xorgproto.git
synced 2026-05-05 13:28:02 +02:00
Add per-device flags to XIDeviceHierarchyEvents
This commit is contained in:
parent
886d2aceb7
commit
12635cbd4a
2 changed files with 10 additions and 5 deletions
12
XI2proto.h
12
XI2proto.h
|
|
@ -778,6 +778,10 @@ typedef struct
|
|||
::XIFloatingSlave */
|
||||
BOOL enabled; /**< TRUE if the device is enabled */
|
||||
uint16_t pad;
|
||||
uint32_t flags; /**< ::XIMasterAdded, ::XIMasterDeleted,
|
||||
::XISlaveAttached, ::XISlaveDetached,
|
||||
::XISlaveAdded, ::XISlaveRemoved,
|
||||
::XIDeviceEnabled, ::XIDeviceDisabled */
|
||||
} xXIHierarchyInfo;
|
||||
|
||||
typedef struct
|
||||
|
|
@ -789,10 +793,10 @@ typedef struct
|
|||
uint16_t evtype; /**< ::XI_Hierarchy */
|
||||
uint16_t deviceid;
|
||||
Time time;
|
||||
uint32_t flags; /* ::XIMasterAdded, ::XIMasterDeleted,
|
||||
::XISlaveAttached, ::XISlaveDetached,
|
||||
::XISlaveAdded, ::XISlaveRemoved,
|
||||
::XIDeviceEnabled, ::XIDeviceDisabled */
|
||||
uint32_t flags; /**< ::XIMasterAdded, ::XIMasterDeleted,
|
||||
::XISlaveAttached, ::XISlaveDetached,
|
||||
::XISlaveAdded, ::XISlaveRemoved,
|
||||
::XIDeviceEnabled, ::XIDeviceDisabled */
|
||||
uint16_t num_devices;
|
||||
uint16_t pad0;
|
||||
uint32_t pad1;
|
||||
|
|
|
|||
|
|
@ -1166,7 +1166,8 @@ EVENTHEADER { type: BYTE
|
|||
HIERARCHYINFO { deviceid: DEVICEID,
|
||||
attachment: DEVICEID,
|
||||
type: DEVICEUSE
|
||||
enabled: BOOL }
|
||||
enabled: BOOL
|
||||
flags: SETofHIERARCHYMASK}
|
||||
|
||||
flags
|
||||
Set of the changes that have occured, causing this event.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue