From e63eb9b02dfbf31a0801e0681505b89c98abcf2a Mon Sep 17 00:00:00 2001 From: Adrian Perez de Castro Date: Fri, 7 Jun 2024 17:04:48 +0200 Subject: [PATCH] wl: Fix compiler warning due to missing cast Cast CogWlViewport to the correct CogViewport type before passing it alont to cog_viewport_get_visible_view(). --- platform/wayland/cog-viewport-wl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/wayland/cog-viewport-wl.c b/platform/wayland/cog-viewport-wl.c index 7221fea9..ef4964b6 100644 --- a/platform/wayland/cog-viewport-wl.c +++ b/platform/wayland/cog-viewport-wl.c @@ -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; }