diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-03-27 17:25:20 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-03-27 17:25:20 +0200 |
| commit | ad36a9dc9ed032e6e34c06f78995bca0045f85b0 (patch) | |
| tree | 933cfc71255a9cfbe1211f187d7d101a4e30ffc8 /src/Compositor.cpp | |
| parent | 4c3b9ae207967bf06b973cc6b49db58887f1af6b (diff) | |
rework popups completely
Diffstat (limited to 'src/Compositor.cpp')
| -rw-r--r-- | src/Compositor.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index eab48614..5405a4f0 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -365,20 +365,6 @@ bool CCompositor::windowValidMapped(CWindow* pWindow) { return true; } -SLayerSurface* CCompositor::getLayerForPopup(SLayerPopup* pPopup) { - auto CurrentPopup = pPopup; - while (CurrentPopup->parentPopup != nullptr) { - for (auto& p : g_pCompositor->m_lLayerPopups) { - if (p.popup == CurrentPopup->parentPopup) { - CurrentPopup = &p; - break; - } - } - } - - return CurrentPopup->parentSurface; -} - CWindow* CCompositor::getWindowForPopup(wlr_xdg_popup* popup) { for (auto& p : m_lXDGPopups) { if (p.popup == popup) |
