mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 851641. Ignore move/resize notifications for popups whose widget is hidden because this likely means they are notifications about our own move/resize requests. r=mats
This commit is contained in:
parent
cb4500a019
commit
1f30931fc2
@ -341,6 +341,10 @@ nsMenuPopupFrame* GetPopupToMoveOrResize(nsIFrame* aFrame)
|
||||
if (menuPopupFrame->PopupState() != ePopupOpenAndVisible)
|
||||
return nullptr;
|
||||
|
||||
nsIWidget* widget = menuPopupFrame->GetWidget();
|
||||
if (widget && !widget->IsVisible())
|
||||
return nullptr;
|
||||
|
||||
return menuPopupFrame;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user