diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-03-20 14:00:46 +0100 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-03-20 14:00:46 +0100 |
| commit | decb2f638d875900c859d968726d5941058095e8 (patch) | |
| tree | 85128ed396caebc6b9f35eb968b09d267542c9ca /src/Compositor.cpp | |
| parent | 332fa8a802dd89f16848765cab8a1483e09e73aa (diff) | |
popups handled properly
Diffstat (limited to 'src/Compositor.cpp')
| -rw-r--r-- | src/Compositor.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index baa098b0..9636be9d 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -322,6 +322,15 @@ SLayerSurface* CCompositor::getLayerForPopup(SLayerPopup* pPopup) { } } } - + return CurrentPopup->parentSurface; +} + +CWindow* CCompositor::getWindowForPopup(wlr_xdg_popup* popup) { + for (auto& p : m_lXDGPopups) { + if (p.popup == popup) + return p.parentWindow; + } + + return nullptr; }
\ No newline at end of file |
