summaryrefslogtreecommitdiffstats
path: root/src/skel
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2020-05-22 14:49:37 +0200
committerGitHub <noreply@github.com>2020-05-22 14:49:37 +0200
commit8b82e9c40f96f8fafc451bd589e31f2c10b643f5 (patch)
tree31af48c2f7af556b368bba1a726698b6a0f8a39a /src/skel
parentMerge pull request #577 from erorcun/miami (diff)
parentfocus loss improvement (diff)
downloadre3-8b82e9c40f96f8fafc451bd589e31f2c10b643f5.tar
re3-8b82e9c40f96f8fafc451bd589e31f2c10b643f5.tar.gz
re3-8b82e9c40f96f8fafc451bd589e31f2c10b643f5.tar.bz2
re3-8b82e9c40f96f8fafc451bd589e31f2c10b643f5.tar.lz
re3-8b82e9c40f96f8fafc451bd589e31f2c10b643f5.tar.xz
re3-8b82e9c40f96f8fafc451bd589e31f2c10b643f5.tar.zst
re3-8b82e9c40f96f8fafc451bd589e31f2c10b643f5.zip
Diffstat (limited to '')
-rw-r--r--src/skel/win/win.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/skel/win/win.cpp b/src/skel/win/win.cpp
index 7fc77d45..415f665a 100644
--- a/src/skel/win/win.cpp
+++ b/src/skel/win/win.cpp
@@ -1222,6 +1222,16 @@ MainWndProc(HWND window, UINT message, WPARAM wParam, LPARAM lParam)
break;
}
+#ifdef FIX_BUGS // game turns on menu when focus is re-gained rather than lost
+ case WM_KILLFOCUS:
+#else
+ case WM_SETFOCUS:
+#endif
+ {
+ CGame::InitAfterFocusLoss();
+ break;
+ }
+
}
/*