desktop/layer: store aboveFs property and use that
This commit is contained in:
parent
59438908de
commit
7098558420
7 changed files with 53 additions and 45 deletions
|
|
@ -338,14 +338,14 @@ void CPopup::reposition() {
|
|||
m_resource->applyPositioning(box, COORDS);
|
||||
}
|
||||
|
||||
SP<Desktop::View::CWLSurface> CPopup::getT1Owner() const {
|
||||
SP<Desktop::View::CWLSurface> CPopup::getT1Owner() const {
|
||||
if (m_windowOwner)
|
||||
return m_windowOwner->wlSurface();
|
||||
else
|
||||
return m_layerOwner->wlSurface();
|
||||
}
|
||||
|
||||
Vector2D CPopup::coordsRelativeToParent() const {
|
||||
Vector2D CPopup::coordsRelativeToParent() const {
|
||||
Vector2D offset;
|
||||
|
||||
if (!m_resource)
|
||||
|
|
@ -365,11 +365,11 @@ Vector2D CPopup::coordsRelativeToParent() const {
|
|||
return offset;
|
||||
}
|
||||
|
||||
Vector2D CPopup::coordsGlobal() const {
|
||||
Vector2D CPopup::coordsGlobal() const {
|
||||
return localToGlobal(coordsRelativeToParent());
|
||||
}
|
||||
|
||||
Vector2D CPopup::localToGlobal(const Vector2D& rel) const {
|
||||
Vector2D CPopup::localToGlobal(const Vector2D& rel) const {
|
||||
return t1ParentCoords() + rel;
|
||||
}
|
||||
|
||||
|
|
@ -483,7 +483,7 @@ bool CPopup::inert() const {
|
|||
return m_inert;
|
||||
}
|
||||
|
||||
PHLMONITOR CPopup::getMonitor() const {
|
||||
PHLMONITOR CPopup::getMonitor() const {
|
||||
if (!m_windowOwner.expired())
|
||||
return m_windowOwner->m_monitor.lock();
|
||||
if (!m_layerOwner.expired())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue