Lines Matching defs:seat
356 return event->device->seat->libinput;
727 struct libinput *libinput = event->base.device->seat->libinput;
755 struct libinput *libinput = event->base.device->seat->libinput;
782 struct libinput *libinput = event->base.device->seat->libinput;
811 struct libinput *libinput = event->base.device->seat->libinput;
1926 libinput_seat_destroy(struct libinput_seat *seat);
1950 struct libinput_seat *seat;
1971 list_for_each_safe(seat, &libinput->seat_list, link) {
1973 &seat->devices_list,
1977 libinput_seat_destroy(seat);
2069 libinput_seat_init(struct libinput_seat *seat,
2075 seat->refcount = 1;
2076 seat->libinput = libinput;
2077 seat->physical_name = safe_strdup(physical_name);
2078 seat->logical_name = safe_strdup(logical_name);
2079 seat->destroy = destroy;
2080 list_init(&seat->devices_list);
2081 list_insert(&libinput->seat_list, &seat->link);
2085 libinput_seat_ref(struct libinput_seat *seat)
2087 seat->refcount++;
2088 return seat;
2092 libinput_seat_destroy(struct libinput_seat *seat)
2094 list_remove(&seat->link);
2095 free(seat->logical_name);
2096 free(seat->physical_name);
2097 seat->destroy(seat);
2101 libinput_seat_unref(struct libinput_seat *seat)
2103 assert(seat->refcount > 0);
2104 seat->refcount--;
2105 if (seat->refcount == 0) {
2106 libinput_seat_destroy(seat);
2110 return seat;
2114 libinput_seat_set_user_data(struct libinput_seat *seat, void *user_data)
2116 seat->user_data = user_data;
2120 libinput_seat_get_user_data(struct libinput_seat *seat)
2122 return seat->user_data;
2126 libinput_seat_get_context(struct libinput_seat *seat)
2128 return seat->libinput;
2132 libinput_seat_get_physical_name(struct libinput_seat *seat)
2134 return seat->physical_name;
2138 libinput_seat_get_logical_name(struct libinput_seat *seat)
2140 return seat->logical_name;
2145 struct libinput_seat *seat)
2147 device->seat = seat;
2245 update_seat_key_count(struct libinput_seat *seat,
2253 return ++seat->button_count[key];
2256 if (seat->button_count[key] == 0)
2259 return --seat->button_count[key];
2266 update_seat_button_count(struct libinput_seat *seat,
2274 return ++seat->button_count[button];
2277 if (seat->button_count[button] == 0)
2280 return --seat->button_count[button];
2300 struct libinput *libinput = device->seat->libinput;
2313 struct libinput *libinput = device->seat->libinput;
2316 log_bug_libinput(device->seat->libinput,
2329 libinput_post_event(device->seat->libinput, event);
2401 log_bug_libinput(device->seat->libinput,
2423 seat_key_count = update_seat_key_count(device->seat, key, state);
2497 seat_button_count = update_seat_button_count(device->seat,
2863 seat_button_count = update_seat_button_count(device->seat,
3251 return libinput_seat_get_context(device->seat);
3293 return device->seat;
3300 struct libinput *libinput = device->seat->libinput;