From a0257c82ad4707a1110f670d0a4f055d9af97fdd Mon Sep 17 00:00:00 2001 From: "neil%parkwaycc.co.uk" Date: Wed, 29 Jun 2005 10:14:17 +0000 Subject: [PATCH] Bug 254894 On Windows, creating an event queue (e.g. via XMLHttpRequest) dismisses open menus r=dean_tessman rs=darin a=bsmedberg git-svn-id: svn://10.0.0.236/trunk@175287 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/widget/src/windows/nsWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/widget/src/windows/nsWindow.cpp b/mozilla/widget/src/windows/nsWindow.cpp index 323063df10b..e5f058de67b 100644 --- a/mozilla/widget/src/windows/nsWindow.cpp +++ b/mozilla/widget/src/windows/nsWindow.cpp @@ -7706,7 +7706,7 @@ VOID CALLBACK nsWindow::HookTimerForPopups(HWND hwnd, UINT uMsg, UINT idEvent, D BOOL nsWindow :: DealWithPopups ( HWND inWnd, UINT inMsg, WPARAM inWParam, LPARAM inLParam, LRESULT* outResult ) { - if ( gRollupListener && gRollupWidget) { + if (gRollupListener && gRollupWidget && IsWindowVisible(inWnd)) { if (inMsg == WM_ACTIVATE || inMsg == WM_LBUTTONDOWN || inMsg == WM_RBUTTONDOWN || inMsg == WM_MBUTTONDOWN ||