From 86115f42b4fa619376cf2c3f9e82269d6301af27 Mon Sep 17 00:00:00 2001 From: Brad Harding Date: Tue, 10 Sep 2024 15:59:35 +1000 Subject: [PATCH] Revert "Make main window owner of WAD launcher dialog" This reverts commit 9ee06bb5be0f6fb92780ef22fe95fb78869b8822. --- src/d_main.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/d_main.c b/src/d_main.c index 2b8d08251..e3160ac9f 100644 --- a/src/d_main.c +++ b/src/d_main.c @@ -44,8 +44,6 @@ #include #include #include - -#include "SDL_syswm.h" #endif #include "am_map.h" @@ -1362,16 +1360,12 @@ static int D_OpenWADLauncher(void) bool fileopenedok; #if defined(_WIN32) - SDL_SysWMinfo info = { 0 }; OPENFILENAME ofn; char szFile[4096]; - SDL_VERSION(&info.version); - SDL_GetWindowWMInfo(window, &info); - ZeroMemory(&ofn, sizeof(ofn)); ofn.lStructSize = sizeof(ofn); - ofn.hwndOwner = info.info.win.window; + ofn.hwndOwner = NULL; M_StringCopy(szFile, (invalidwad ? invalidwad : wad), sizeof(szFile)); ofn.lpstrFile = szFile; ofn.nMaxFile = sizeof(szFile);