From d0cf8c64619a5702d11fd28366c3b69096494fdc Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Tue, 22 Aug 2023 16:01:58 +0200 Subject: [PATCH] another fix for aero snap --- src/wndproc.c | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/wndproc.c b/src/wndproc.c index bf76255..a7e377d 100644 --- a/src/wndproc.c +++ b/src/wndproc.c @@ -465,31 +465,8 @@ LRESULT CALLBACK fake_WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam return DefWindowProc(hWnd, uMsg, wParam, lParam); /* Carmageddon fix */ } - case WM_NCMOUSELEAVE: - { - if (!g_ddraw->wine) /* hack: disable aero snap */ - { - LONG style = real_GetWindowLongA(g_ddraw->hwnd, GWL_STYLE); - - if (!(style & WS_MAXIMIZEBOX)) - { - real_SetWindowLongA(g_ddraw->hwnd, GWL_STYLE, style | WS_MAXIMIZEBOX); - } - } - break; - } case WM_SYSCOMMAND: { - if ((wParam & ~0x0F) == SC_MOVE && !g_ddraw->wine) /* hack: disable aero snap */ - { - LONG style = real_GetWindowLongA(g_ddraw->hwnd, GWL_STYLE); - - if ((style & WS_MAXIMIZEBOX)) - { - real_SetWindowLongA(g_ddraw->hwnd, GWL_STYLE, style & ~WS_MAXIMIZEBOX); - } - } - if (wParam == SC_MAXIMIZE) { if (g_ddraw->resizable)