Commit 12c7ecac authored by masayuki%d-toybox.com's avatar masayuki%d-toybox.com
Browse files

Bug 333166 When mouse cursor is on the plug-in but not focused, focused...

Bug 333166 When mouse cursor is on the plug-in but not focused, focused element will receive wheel event instead of plug-in. patch by Masatoshi Kimura (:emk) <VYV03354@nifty.ne.jp> r=ere, sr=roc
parent a0b076d8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5113,7 +5113,7 @@ PRBool nsWindow::ProcessMessage(UINT msg, WPARAM wParam, LPARAM lParam, LRESULT
          // we find a parent matching our wndproc.
          HWND parentWnd = ::GetParent(destWnd);
          while (parentWnd) {
            LONG parentWndProc = ::GetClassLong(parentWnd, GCL_WNDPROC);
            LONG parentWndProc = ::GetClassLongW(parentWnd, GCL_WNDPROC);
            if (parentWndProc == (LONG)&nsWindow::DefaultWindowProc || parentWndProc == (LONG)&nsWindow::WindowProc) {
              // We have a child window - quite possibly a plugin window.
              // However, not all plugins are created equal - some will handle this message themselves,