From 6642ad63b74eca8011fbca0fea2678d6431a91db Mon Sep 17 00:00:00 2001 From: Andrei Drexler Date: Fri, 28 Jan 2022 17:39:34 +0200 Subject: [PATCH] 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. --- Quake/gl_vidsdl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Quake/gl_vidsdl.c b/Quake/gl_vidsdl.c index f2616f1f..30548c43 100644 --- a/Quake/gl_vidsdl.c +++ b/Quake/gl_vidsdl.c @@ -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) {