Browse Source

force focus changes on task tray mouse move, only check for focus change in timer if ditto is active

git-svn-id: svn://svn.code.sf.net/p/ditto-cp/code/trunk@629 595ec19a-5cb4-439b-94a8-42fb3063c22c
sabrogden 14 years ago
parent
commit
98984bd9ca
1 changed files with 6 additions and 6 deletions
  1. 6 6
      MainFrm.cpp

+ 6 - 6
MainFrm.cpp

@@ -518,7 +518,7 @@ void CMainFrame::OnTimer(UINT_PTR nIDEvent)
 
         case ACTIVE_WINDOW_TIMER:
 			{
-				if(m_TrayIcon.Visible())
+				if(theApp.m_bShowingQuickPaste)
 				{
 					theApp.m_activeWnd.TrackActiveWnd(NULL, false);
 				}
@@ -601,10 +601,10 @@ LRESULT CMainFrame::OnClipboardCopied(WPARAM wParam, LPARAM lParam)
 BOOL CMainFrame::PreTranslateMessage(MSG *pMsg)
 {
     // target before mouse messages change the focus
-    if(theApp.m_bShowingQuickPaste && WM_MOUSEFIRST <= pMsg->message && pMsg->message <= WM_MOUSELAST)
-    {
-        theApp.m_activeWnd.TrackActiveWnd(NULL, false);
-    }
+	/*if(theApp.m_bShowingQuickPaste && WM_MOUSEFIRST <= pMsg->message && pMsg->message <= WM_MOUSELAST)
+	{
+	theApp.m_activeWnd.TrackActiveWnd(NULL, true);
+	}*/
 
     return CFrameWnd::PreTranslateMessage(pMsg);
 }
@@ -673,7 +673,7 @@ bool CMainFrame::CloseAllOpenDialogs()
 
 LRESULT CMainFrame::OnSystemTrayMouseMove(WPARAM wParam, LPARAM lParam)
 {
-	theApp.m_activeWnd.TrackActiveWnd(NULL, false);
+	theApp.m_activeWnd.TrackActiveWnd(NULL, true);
 	return 0;
 }