static void gfx_ctx_wl_check_window(void *data, bool *quit, bool *resize, unsigned *width, unsigned *height, unsigned frame_count) { gfx_ctx_wayland_data_t *wl = (gfx_ctx_wayland_data_t*)data; unsigned new_width, new_height; (void)frame_count; flush_wayland_fd(wl); new_width = *width; new_height = *height; gfx_ctx_wl_get_video_size(data, &new_width, &new_height); switch (wl_api) { case GFX_CTX_VULKAN_API: #ifdef HAVE_VULKAN /* Swapchains are recreated in set_resize as a * central place, so use that to trigger swapchain reinit. */ *resize = wl->vk.need_new_swapchain; #endif break; case GFX_CTX_NONE: default: break; } if (new_width != *width || new_height != *height) { *resize = true; *width = new_width; *height = new_height; } *quit = (bool)frontend_driver_get_signal_handler_state(); }
static void gfx_ctx_wl_check_window(void *data, bool *quit, bool *resize, unsigned *width, unsigned *height, unsigned frame_count) { unsigned new_width, new_height; (void)frame_count; flush_wayland_fd((gfx_ctx_wayland_data_t*)data); new_width = *width; new_height = *height; gfx_ctx_wl_get_video_size(data, &new_width, &new_height); if (new_width != *width || new_height != *height) { *resize = true; *width = new_width; *height = new_height; } *quit = g_egl_quit; }