diff options
| author | davc0n <dconti.dev@gmail.com> | 2025-04-24 20:49:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-24 20:49:49 +0200 |
| commit | 0e80ecc5342db04c8c1f807fa6db4c703fb89e3a (patch) | |
| tree | d71179a6517216ab32a12ebaf147e9eaffdbdffa /src/desktop/WLSurface.cpp | |
| parent | be6268a7ecea2ad50cdb78fb661884811a8a28e8 (diff) | |
layers: refactor class member vars (#10149)
* layers: refactor class member vars
* popups: rename m_WLSurface to m_wlSurface
Diffstat (limited to 'src/desktop/WLSurface.cpp')
| -rw-r--r-- | src/desktop/WLSurface.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/desktop/WLSurface.cpp b/src/desktop/WLSurface.cpp index 11da7b68..ef62bc7a 100644 --- a/src/desktop/WLSurface.cpp +++ b/src/desktop/WLSurface.cpp @@ -190,7 +190,7 @@ std::optional<CBox> CWLSurface::getSurfaceBoxGlobal() const { if (!m_pWindowOwner.expired()) return m_pWindowOwner->getWindowMainSurfaceBox(); if (!m_pLayerOwner.expired()) - return m_pLayerOwner->geometry; + return m_pLayerOwner->m_geometry; if (m_pPopupOwner) return CBox{m_pPopupOwner->coordsGlobal(), m_pPopupOwner->size()}; if (m_pSubsurfaceOwner) @@ -228,7 +228,7 @@ SP<CWLSurface> CWLSurface::fromResource(SP<CWLSurfaceResource> pSurface) { bool CWLSurface::keyboardFocusable() const { if (m_pWindowOwner || m_pPopupOwner || m_pSubsurfaceOwner) return true; - if (m_pLayerOwner && m_pLayerOwner->layerSurface) - return m_pLayerOwner->layerSurface->current.interactivity != ZWLR_LAYER_SURFACE_V1_KEYBOARD_INTERACTIVITY_NONE; + if (m_pLayerOwner && m_pLayerOwner->m_layerSurface) + return m_pLayerOwner->m_layerSurface->current.interactivity != ZWLR_LAYER_SURFACE_V1_KEYBOARD_INTERACTIVITY_NONE; return false; } |
