mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-10-06 01:56:28 +00:00
rework popups completely
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user