summaryrefslogtreecommitdiff
path: root/src/Compositor.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-27 17:25:20 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-27 17:25:20 +0200
commitad36a9dc9ed032e6e34c06f78995bca0045f85b0 (patch)
tree933cfc71255a9cfbe1211f187d7d101a4e30ffc8 /src/Compositor.cpp
parent4c3b9ae207967bf06b973cc6b49db58887f1af6b (diff)
rework popups completely
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)