popups handled properly

This commit is contained in:
vaxerski
2022-03-20 14:00:46 +01:00
parent 332fa8a802
commit decb2f638d
6 changed files with 100 additions and 2 deletions

View File

@@ -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;
}