From a6e7b5f235fee1d3cf6c5fc023e11ef2ab5a5be4 Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Sat, 4 May 2024 01:45:41 +0200 Subject: [PATCH] Fix alt+tab issues on windows 7 (opengl + aero) --- src/wndproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wndproc.c b/src/wndproc.c index 8ea8ba5b2d..a551991914 100644 --- a/src/wndproc.c +++ b/src/wndproc.c @@ -614,8 +614,8 @@ LRESULT CALLBACK fake_WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam { if (g_ddraw.renderer != d3d9_render_main || g_config.nonexclusive) { - ChangeDisplaySettings(&g_ddraw.render.mode, CDS_FULLSCREEN); real_ShowWindow(g_ddraw.hwnd, SW_RESTORE); + ChangeDisplaySettings(&g_ddraw.render.mode, CDS_FULLSCREEN); mouse_lock(); } }