GdkX11.x11_device_get_id
Description: Reference for GdkX11.x11_device_get_id

### Function

# GdkX11x11_device_get_id

since: 4.0

#### Declaration [src]

    int
    gdk_x11_device_get_id (
      GdkDevice* device
    )

#### Description [src]

Returns the device ID as seen by XInput2.

Available since: 4.0

#### Parameters

`device`

  Type: `GdkX11DeviceXI2`

  A `GdkDevice`

  The data is owned by the caller of the function.

#### Return value

Type: `int`

The XInput2 device ID.