diff --git a/include/wpe/view-backend.h b/include/wpe/view-backend.h index f3b5c99b..e17a1b5d 100644 --- a/include/wpe/view-backend.h +++ b/include/wpe/view-backend.h @@ -102,8 +102,8 @@ wpe_view_backend_set_input_client(struct wpe_view_backend*, const struct wpe_vie /** * wpe_view_backend_set_fullscreen_client: * @view_backend: (transfer none): The view backend to obtains events from. - * @client: (transfer none): Client with callbacks for the events. - * @userdata: (transfer none): User data passed to client callbacks. + * @client: (transfer none) (nullable): Client with callbacks for the events. + * @userdata: (transfer none) (nullable): User data passed to client callbacks. * * Configure a @client with callbacks invoked for DOM fullscreen requests. * diff --git a/src/view-backend.c b/src/view-backend.c index 1803a747..5cc353b6 100644 --- a/src/view-backend.c +++ b/src/view-backend.c @@ -100,8 +100,6 @@ wpe_view_backend_set_input_client(struct wpe_view_backend* backend, const struct void wpe_view_backend_set_fullscreen_client(struct wpe_view_backend* backend, const struct wpe_view_backend_fullscreen_client* client, void* client_data) { - assert(!backend->fullscreen_client); - backend->fullscreen_client = client; backend->fullscreen_client_data = client_data; }