Bug 718939 - Backout bea7ecf9084e. r=roc a=akeybl
authorChris Pearce <cpearce@mozilla.com>
Wed, 08 Feb 2012 16:52:35 +1300
changeset 85344 c0feb8e404a003dede78f7f6126922cbce905168
parent 85343 ab1685df6e2f8ac03de24be1b71f7f6e3e5d9391
child 85345 7f22f84970deb7984a047db5b2f7db60137e1dbe
child 85348 7850f65718ee1c3e4ef4a735615881404140f37e
child 85351 a8285225e983a63e152c38ab6a7c40345db118cc
child 85359 7e6301419a311df4ce737d03e40cce6f016ebbae
push id1
push usersledru@mozilla.com
push dateThu, 04 Dec 2014 17:57:20 +0000
reviewersroc, akeybl
bugs718939
milestone11.0
Bug 718939 - Backout bea7ecf9084e. r=roc a=akeybl
widget/src/windows/nsWindow.cpp
--- a/widget/src/windows/nsWindow.cpp
+++ b/widget/src/windows/nsWindow.cpp
@@ -5233,21 +5233,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);