From f623ddc06af1df28ecb3990918e99de24e131db4 Mon Sep 17 00:00:00 2001 From: and3md Date: Sat, 6 May 2017 12:54:17 +0200 Subject: [PATCH] SDL: Set window state on create. --- src/dlangui/platforms/sdl/sdlapp.d | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dlangui/platforms/sdl/sdlapp.d b/src/dlangui/platforms/sdl/sdlapp.d index 3abd49f9..df7bf173 100644 --- a/src/dlangui/platforms/sdl/sdlapp.d +++ b/src/dlangui/platforms/sdl/sdlapp.d @@ -87,7 +87,8 @@ class SDLWindow : Window { this(SDLPlatform platform, dstring caption, Window parent, uint flags, uint width = 0, uint height = 0) { _platform = platform; _caption = caption; - + _windowState = WindowState.hidden; + _parent = cast(SDLWindow) parent; if (_parent) _parent._children~=this;