зеркало из https://github.com/mozilla/gecko-dev.git
Bug 746775 - Clicks to close a context-menu in a panel are also consumed by the panel. r=jmathies,enndeakin.
This commit is contained in:
Родитель
4ff3e34794
Коммит
998dbff9fa
|
@ -4814,9 +4814,7 @@ nsWindow::CheckForRollup(gdouble aMouseX, gdouble aMouseY,
|
|||
|
||||
// if we've determined that we should still rollup, do it.
|
||||
if (rollup && rollupListener->Rollup(popupsToRollup, nullptr)) {
|
||||
if (popupsToRollup == UINT32_MAX) {
|
||||
retVal = true;
|
||||
}
|
||||
retVal = true;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -8045,7 +8045,7 @@ nsWindow::DealWithPopups(HWND inWnd, UINT inMsg, WPARAM inWParam, LPARAM inLPara
|
|||
nsWindowType wintype;
|
||||
activateWindow->GetWindowType(wintype);
|
||||
if (wintype == eWindowType_popup && activateWindow->PopupType() == ePopupTypePanel) {
|
||||
*outResult = MA_NOACTIVATE;
|
||||
*outResult = popupsToRollup != UINT32_MAX ? MA_NOACTIVATEANDEAT : MA_NOACTIVATE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче