diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-07-15 18:27:21 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-07-15 18:27:21 +0200 |
| commit | 06563d70342312789d45061d9367e67de9a09776 (patch) | |
| tree | f2d7db51ce1dab69961fbd84c3cf236de50b9a67 /src/events/Popups.cpp | |
| parent | 459afcc47f7a8fd0b85c4b89645099e2643732b3 (diff) | |
popups: update parent pos on commit
Diffstat (limited to 'src/events/Popups.cpp')
| -rw-r--r-- | src/events/Popups.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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); |
