Skip to content

Commit

Permalink
fix: allow resetting fullscreen client to nullptr
Browse files Browse the repository at this point in the history
(cherry picked from commit 2f0e0d6)
  • Loading branch information
yury-s authored and aperezdc committed Jan 24, 2024
1 parent f462855 commit e346a31
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 @@ -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.
*
Expand Down
2 changes: 0 additions & 2 deletions src/view-backend.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e346a31

Please sign in to comment.