Raise window after showing it

Potential fix for https://github.com/andrei-drexler/ironwail/issues/27:
The focused window is not the game window on initial startup until the
game window is clicked on with mouse. Confirmed that it doesn't happen
with only one screen.
This commit is contained in:
Andrei Drexler 2022-01-28 17:39:34 +02:00 committed by Ozkan Sezer
parent 743c983060
commit 6642ad63b7

View file

@ -668,6 +668,7 @@ static qboolean VID_SetMode (int width, int height, int refreshrate, int bpp, qb
}
SDL_ShowWindow (draw_context);
SDL_RaiseWindow (draw_context);
/* Create GL context if needed */
if (!gl_context) {