Skip to content

Commit

Permalink
Still hide window at start (fixes fullscreen in Gnome)
Browse files Browse the repository at this point in the history
  • Loading branch information
def- committed May 7, 2016
1 parent 9bd30ce commit 642e7f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/engine/client/backend_sdl.cpp
Expand Up @@ -602,7 +602,7 @@ int CGraphicsBackend_SDL_OpenGL::Init(const char *pName, int *Screen, int *pWidt
}

// set flags
int SdlFlags = SDL_WINDOW_OPENGL;
int SdlFlags = SDL_WINDOW_OPENGL | SDL_WINDOW_HIDDEN;
#if defined(SDL_VIDEO_DRIVER_X11)
if(Flags&IGraphicsBackend::INITFLAG_RESIZABLE)
SdlFlags |= SDL_WINDOW_RESIZABLE;
Expand Down Expand Up @@ -688,6 +688,8 @@ int CGraphicsBackend_SDL_OpenGL::Init(const char *pName, int *Screen, int *pWidt
RunBuffer(&CmdBuffer);
WaitForIdle();

SDL_ShowWindow(m_pWindow);

// return
return 0;
}
Expand Down

0 comments on commit 642e7f7

Please sign in to comment.