diff --git a/src/events/Popups.cpp b/src/events/Popups.cpp index e3370534..b76c70af 100644 --- a/src/events/Popups.cpp +++ b/src/events/Popups.cpp @@ -202,6 +202,11 @@ void Events::listener_unmapPopupXDG(void* owner, void* data) { void Events::listener_commitPopupXDG(void* owner, void* data) { SXDGPopup* PPOPUP = (SXDGPopup*)owner; + if (g_pCompositor->windowValidMapped(PPOPUP->parentWindow)) { + PPOPUP->lx = PPOPUP->parentWindow->m_vRealPosition.vec().x; + PPOPUP->ly = PPOPUP->parentWindow->m_vRealPosition.vec().y; + } + int lx = 0, ly = 0; addPopupGlobalCoords(PPOPUP, &lx, &ly);