mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-19 18:02:54 +00:00
wayland: External windows are never hidden
Needed for the GPU renderer to function properly.
This commit is contained in:
@@ -3068,6 +3068,11 @@ bool Wayland_CreateWindow(SDL_VideoDevice *_this, SDL_Window *window, SDL_Proper
|
||||
// Roleless and external surfaces are always considered to be in the shown state by the backend.
|
||||
data->shell_surface_type = WAYLAND_SHELL_SURFACE_TYPE_CUSTOM;
|
||||
data->shell_surface_status = WAYLAND_SHELL_SURFACE_STATUS_SHOWN;
|
||||
|
||||
// External windows are presumed to be shown.
|
||||
if (window->flags & SDL_WINDOW_EXTERNAL) {
|
||||
window->flags &= ~SDL_WINDOW_HIDDEN;
|
||||
}
|
||||
}
|
||||
|
||||
if (SDL_GetHintBoolean(SDL_HINT_VIDEO_DOUBLE_BUFFER, false)) {
|
||||
|
||||
Reference in New Issue
Block a user