focus loss improvement

for u aap
This commit is contained in:
Xinerki 2020-05-21 21:48:39 +03:00
parent e0345732c0
commit 900d5a4ce0

View File

@ -1222,9 +1222,12 @@ MainWndProc(HWND window, UINT message, WPARAM wParam, LPARAM lParam)
break; break;
} }
case 7: #ifdef FIX_BUGS // game turns on menu when focus is re-gained rather than lost
case WM_KILLFOCUS:
#else
case WM_SETFOCUS:
#endif
{ {
debug("ALT TABBED! CGame::InitAfterFocusLoss() \n");
CGame::InitAfterFocusLoss(); CGame::InitAfterFocusLoss();
break; break;
} }