return;
if (!(seat_client->seat->accumulated_capabilities &
- WL_SEAT_CAPABILITY_POINTER)) {
+ WL_SEAT_CAPABILITY_KEYBOARD)) {
#ifdef HAVE_WL_SEAT_ERROR_MISSING_CAPABILITY
wl_resource_post_error(resource, WL_SEAT_ERROR_MISSING_CAPABILITY,
- "wl_seat.get_pointer called when no "
+ "wl_seat.get_keyboard called when no "
"keyboard capability has existed");
#endif
return;
return;
if (!(seat_client->seat->accumulated_capabilities &
- WL_SEAT_CAPABILITY_POINTER)) {
+ WL_SEAT_CAPABILITY_TOUCH)) {
#ifdef HAVE_WL_SEAT_ERROR_MISSING_CAPABILITY
wl_resource_post_error(resource, WL_SEAT_ERROR_MISSING_CAPABILITY,
- "wl_seat.get_pointer called when no "
+ "wl_seat.get_touch called when no "
"touch capability has existed");
#endif
return;
struct wl_resource *resource;
resource = wl_resource_create(seat_client->wl_client,
- &wl_keyboard_interface, version, id);
+ &wl_touch_interface, version, id);
if (!resource) {
wl_client_post_no_memory(seat_client->wl_client);
return;