Skip to content

Commit

Permalink
do not never forward SC_MAXIMIZE to the game in wine
Browse files Browse the repository at this point in the history
  • Loading branch information
FunkyFr3sh committed Oct 6, 2024
1 parent 4fdc98e commit 92df125
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/wndproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -576,8 +576,11 @@ LRESULT CALLBACK fake_WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam
}
}

if (wParam == SC_MAXIMIZE && !IsWine())
if (wParam == SC_MAXIMIZE)
{
if (IsWine())
return DefWindowProc(hWnd, uMsg, wParam, lParam);

if (g_config.resizable)
{
util_toggle_maximize();
Expand Down

0 comments on commit 92df125

Please sign in to comment.