container_of(listener, struct wl_input_device,
pointer_focus_listener);
- wl_input_device_set_pointer_focus(device, NULL, time, 0, 0, 0, 0);
+ device->pointer_focus_resource = NULL;
}
static void
container_of(listener, struct wl_input_device,
keyboard_focus_listener);
- wl_input_device_set_keyboard_focus(device, NULL, time);
+ device->keyboard_focus_resource = NULL;
}
WL_EXPORT void
wl_resource_post_event(resource,
WL_INPUT_DEVICE_POINTER_FOCUS,
time, surface, x, y, sx, sy);
- wl_list_insert(surface->resource.destroy_listener_list.prev,
+ wl_list_insert(resource->destroy_listener_list.prev,
&device->pointer_focus_listener.link);
}
wl_resource_post_event(resource,
WL_INPUT_DEVICE_KEYBOARD_FOCUS,
time, surface, &device->keys);
- wl_list_insert(surface->resource.destroy_listener_list.prev,
+ wl_list_insert(resource->destroy_listener_list.prev,
&device->keyboard_focus_listener.link);
}