Function input_sys::libinput_device_get_seat[][src]

pub unsafe extern "C" fn libinput_device_get_seat(
    device: *mut libinput_device
) -> *mut libinput_seat
Expand description

@ingroup device

Get the seat associated with this input device.

A seat can be uniquely identified by the physical and logical seat name. There will ever be only one seat instance with a given physical and logical seat name pair at any given time, but if no external reference is kept, it may be destroyed if no device belonging to it is left.

The returned seat is not refcounted and may become invalid after the next call to libinput. Use libinput_seat_ref() and libinput_seat_unref() to continue using the handle outside of the immediate scope.

See the libinput documentation for more information on seats.

@param device A previously obtained device @return The seat this input device belongs to