From 68082c7d15d503eb17633a95a38c32f4c6f0043f Mon Sep 17 00:00:00 2001 From: Frank Praznik Date: Tue, 5 May 2026 18:26:51 -0400 Subject: [PATCH] wayland: Unconditionally send an exposure event on window shown status Some compositors send the frame callback as part of the initial configuration sequence, so the window may already be past the "waiting for frame" state. Ensure that the exposure event is always sent. (cherry picked from commit 1ac0ae92247285714f50d07007bbb71d2c6d266d) --- src/video/wayland/SDL_waylandwindow.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/video/wayland/SDL_waylandwindow.c b/src/video/wayland/SDL_waylandwindow.c index 913209af06..5591e59e11 100644 --- a/src/video/wayland/SDL_waylandwindow.c +++ b/src/video/wayland/SDL_waylandwindow.c @@ -2160,9 +2160,7 @@ void Wayland_ShowWindow(SDL_VideoDevice *_this, SDL_Window *window) data->showing_window = false; // Send an exposure event to signal that the client should draw. - if (data->shell_surface_status == WAYLAND_SHELL_SURFACE_STATUS_WAITING_FOR_FRAME) { - SDL_SendWindowEvent(window, SDL_EVENT_WINDOW_EXPOSED, 0, 0); - } + SDL_SendWindowEvent(window, SDL_EVENT_WINDOW_EXPOSED, 0, 0); } static void Wayland_ReleasePopup(SDL_VideoDevice *_this, SDL_Window *popup)