From 51dfc0f9c917fd6fcb4e5b5c0639d34392e8067b Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Thu, 31 Mar 2022 21:55:21 +0200 Subject: [PATCH] fix critical crash with multi-popups --- src/events/Popups.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/events/Popups.cpp b/src/events/Popups.cpp index ac5329e8..90e0851d 100644 --- a/src/events/Popups.cpp +++ b/src/events/Popups.cpp @@ -84,6 +84,7 @@ void Events::listener_newPopupXDG(void* owner, void* data) { PNEWPOPUP->popup = WLRPOPUP; PNEWPOPUP->lx = &PWINDOW->m_vEffectivePosition.x; PNEWPOPUP->ly = &PWINDOW->m_vEffectivePosition.y; + PNEWPOPUP->parentWindow = PWINDOW; createNewPopup(WLRPOPUP, PNEWPOPUP); }