Bug 1795822 [Wayland] Use correct popup for move-to-rect check r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D159570
This commit is contained in:
stransky 2022-10-18 09:45:11 +00:00
parent 432a8d9d92
commit f02086d01e

View file

@ -1889,8 +1889,8 @@ void nsWindow::UpdateWaylandPopupHierarchy() {
return false;
}
if (!popup->WaylandPopupIsFirst() &&
!mWaylandPopupPrev->WaylandPopupIsFirst() &&
!mWaylandPopupPrev->mPopupUseMoveToRect) {
!popup->mWaylandPopupPrev->WaylandPopupIsFirst() &&
!popup->mWaylandPopupPrev->mPopupUseMoveToRect) {
// We can't use move-to-rect if there are more parents of
// wl_subsurface popups types.
//