Skip to content

Commit

Permalink
fix: allow resetting fullscreen client to nullptr
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-s authored and aperezdc committed Nov 9, 2023
1 parent d7c669c commit 2f0e0d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/wpe/view-backend.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,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.
*
Expand Down
2 changes: 0 additions & 2 deletions src/view-backend.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,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;
}
Expand Down

0 comments on commit 2f0e0d6

Please sign in to comment.