[Xcb] [PATCH proto 1/2] xinput: Add DeviceChange for DevicePresenceNotify

Peter Hutterer peter.hutterer at who-t.net
Thu Jan 3 22:03:28 PST 2013


On Thu, Jan 03, 2013 at 08:49:28PM +0100, Daniel Martin wrote:
> Add the DeviceChange enum for the DevicePresenceNotify event.
> ---
>  src/xinput.xml | 11 ++++++++++-
>  1 file changed, 10 insertions(+), 1 deletion(-)

Reviewed-by: Peter Hutterer <peter.hutterer at who-t.net>

Cheers,
   Peter

> 
> diff --git a/src/xinput.xml b/src/xinput.xml
> index 08f90b3..e9cc9e5 100644
> --- a/src/xinput.xml
> +++ b/src/xinput.xml
> @@ -1108,10 +1108,19 @@ authorization from the authors.
>          </list>
>      </event>
>  
> +    <enum name="DeviceChange">
> +        <item name="Added" />
> +        <item name="Removed" />
> +        <item name="Enabled" />
> +        <item name="Disabled" />
> +        <item name="Unrecoverable" />
> +        <item name="ControlChanged" />
> +    </enum>
> +
>      <event name="DevicePresenceNotify" number="15">
>          <pad bytes="1" />
>          <field type="TIMESTAMP" name="time" />
> -        <field type="BYTE"      name="devchange" />
> +        <field type="BYTE"      name="devchange" enum="DeviceChange" />
>          <field type="BYTE"      name="device_id" />
>          <field type="CARD16"    name="control" />
>          <pad bytes="20" />
> -- 
> 1.8.0.3
> 



More information about the Xcb mailing list