fix critical crash with multi-popups

This commit is contained in:
vaxerski 2022-03-31 21:55:21 +02:00
parent a3860e99cb
commit 51dfc0f9c9

View file

@ -84,6 +84,7 @@ void Events::listener_newPopupXDG(void* owner, void* data) {
PNEWPOPUP->popup = WLRPOPUP; PNEWPOPUP->popup = WLRPOPUP;
PNEWPOPUP->lx = &PWINDOW->m_vEffectivePosition.x; PNEWPOPUP->lx = &PWINDOW->m_vEffectivePosition.x;
PNEWPOPUP->ly = &PWINDOW->m_vEffectivePosition.y; PNEWPOPUP->ly = &PWINDOW->m_vEffectivePosition.y;
PNEWPOPUP->parentWindow = PWINDOW;
createNewPopup(WLRPOPUP, PNEWPOPUP); createNewPopup(WLRPOPUP, PNEWPOPUP);
} }