popups handled properly
This commit is contained in:
parent
332fa8a802
commit
decb2f638d
6 changed files with 100 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue