summaryrefslogtreecommitdiff
path: root/src/Compositor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Compositor.cpp')
-rw-r--r--src/Compositor.cpp14
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)