Skip to content

Commit

Permalink
wl: Fix compiler warning due to missing cast
Browse files Browse the repository at this point in the history
Cast CogWlViewport to the correct CogViewport type before passing it
alont to cog_viewport_get_visible_view().
  • Loading branch information
aperezdc committed Jun 7, 2024
1 parent 0e5992a commit e63eb9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/wayland/cog-viewport-wl.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ cog_wl_viewport_exit_fullscreen(CogWlViewport *viewport)
cog_wl_viewport_configure_geometry(viewport, window->width_before_fullscreen, window->height_before_fullscreen);

if (window->was_fullscreen_requested_from_dom) {
cog_wl_view_exit_fullscreen(COG_WL_VIEW(cog_viewport_get_visible_view(viewport)));
cog_wl_view_exit_fullscreen(COG_WL_VIEW(cog_viewport_get_visible_view(COG_VIEWPORT(viewport))));
}
window->was_fullscreen_requested_from_dom = false;
}
Expand Down

0 comments on commit e63eb9b

Please sign in to comment.