mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-18 12:08:58 +00:00
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 1ac0ae9224)
This commit is contained in:
parent
b35ffa1f69
commit
b42dbd8ecb
1 changed files with 1 additions and 3 deletions
|
|
@ -2067,9 +2067,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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue