From 699dd4bfcbd44d6f4f78ac1f74060bdb2b511fa2 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Wed, 9 Nov 2022 18:18:39 +0100 Subject: [PATCH] Use forground window as parent for errors --- src/client/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/main.cpp b/src/client/main.cpp index 2e02395f..f2d66387 100644 --- a/src/client/main.cpp +++ b/src/client/main.cpp @@ -174,7 +174,7 @@ namespace } catch (std::exception& e) { - MessageBoxA(nullptr, e.what(), "ERROR", MB_ICONERROR); + MessageBoxA(GetForegroundWindow(), e.what(), "ERROR", MB_ICONERROR); return 1; } }