Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorUnderground78 <underground78@users.sourceforge.net>2013-10-05 20:49:07 +0400
committerUnderground78 <underground78@users.sourceforge.net>2013-10-06 21:59:43 +0400
commit54234ca29d35eb333b200acfeb21ade321b2c0a7 (patch)
tree895016d742041d68a7505e55547b1d83134700ed /src
parent6567da39474b429a47f8421d94c7867cf9b22ca6 (diff)
Fix: Ensure that the "On Top" status is checked when losing the focus.
It used to be checked on being given the focus which is mostly useless. This commit helps for ticket #3541 but in theory it should just be a safety belt.
Diffstat (limited to 'src')
-rw-r--r--src/mpc-hc/MainFrm.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mpc-hc/MainFrm.cpp b/src/mpc-hc/MainFrm.cpp
index e0eedf3f7..247710c1c 100644
--- a/src/mpc-hc/MainFrm.cpp
+++ b/src/mpc-hc/MainFrm.cpp
@@ -1171,8 +1171,6 @@ void CMainFrame::Dump(CDumpContext& dc) const
// CMainFrame message handlers
void CMainFrame::OnSetFocus(CWnd* pOldWnd)
{
- SetAlwaysOnTop(AfxGetAppSettings().iOnTop);
-
// forward focus to the view window
if (IsWindow(m_wndView.m_hWnd)) {
m_wndView.SetFocus();
@@ -1532,6 +1530,7 @@ void CMainFrame::OnActivateApp(BOOL bActive, DWORD dwThreadID)
__super::OnActivateApp(bActive, dwThreadID);
if (AfxGetAppSettings().iOnTop) {
+ SetAlwaysOnTop(AfxGetAppSettings().iOnTop);
return;
}