Bug 718939 - Backout bea7ecf9084e. r=roc a=akeybl
authorChris Pearce <cpearce@mozilla.com>
Wed, 08 Feb 2012 17:00:11 +1300
changeset 87149 87c39b5f821ce804864641461f0f449c60233b03
parent 87148 6236433849116bab8b7a9c5c0da49e060cb585ac
child 87150 36476c9edc645fab23800226d6d5bbfac6eae1a4
push id835
push usercpearce@mozilla.com
push dateWed, 08 Feb 2012 04:01:21 +0000
treeherdermozilla-aurora@87c39b5f821c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc, akeybl
bugs718939
milestone12.0a2
Bug 718939 - Backout bea7ecf9084e. r=roc a=akeybl
widget/windows/nsWindow.cpp
--- a/widget/windows/nsWindow.cpp
+++ b/widget/windows/nsWindow.cpp
@@ -5204,21 +5204,17 @@ bool nsWindow::ProcessMessage(UINT msg, 
       if (nsWindow::sIsAccessibilityOn) {
         // Create it for the first time so that it can start firing events
         nsAccessible *rootAccessible = GetRootAccessible();
       }
 #endif
       break;
 
     case WM_KILLFOCUS:
-      if (sJustGotDeactivate || !wParam) {
-        // Note: wParam is FALSE when the window has lost focus. Sometimes
-        // We can receive WM_KILLFOCUS with !wParam while changing to
-        // full-screen mode and we won't receive an WM_ACTIVATE/WA_INACTIVE
-        // message, so inform the focus manager that we've lost focus now.
+      if (sJustGotDeactivate) {
         result = DispatchFocusToTopLevelWindow(NS_DEACTIVATE);
       }
       break;
 
     case WM_WINDOWPOSCHANGED:
     {
       WINDOWPOS *wp = (LPWINDOWPOS)lParam;
       OnWindowPosChanged(wp, result);