mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1192655 - Make menubar not react to events when it is not visible. r=enn
This commit is contained in:
parent
16ed7702fd
commit
1bd2ca2c38
@ -408,6 +408,11 @@ nsMenuBarListener::MouseDown(nsIDOMEvent* aMouseEvent)
|
||||
nsresult
|
||||
nsMenuBarListener::HandleEvent(nsIDOMEvent* aEvent)
|
||||
{
|
||||
// If the menu bar is collapsed, don't do anything.
|
||||
if (!mMenuBarFrame->StyleVisibility()->IsVisible()) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsAutoString eventType;
|
||||
aEvent->GetType(eventType);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user