render: refactor class member vars (#10292)
* render: refactor class member vars * render: fix clang format
This commit is contained in:
parent
c7eb141098
commit
997fefbc11
63 changed files with 1307 additions and 1321 deletions
|
|
@ -74,7 +74,7 @@ CLayerSurface::~CLayerSurface() {
|
|||
if (m_surface)
|
||||
m_surface->unassign();
|
||||
g_pHyprRenderer->makeEGLCurrent();
|
||||
std::erase_if(g_pHyprOpenGL->m_mLayerFramebuffers, [&](const auto& other) { return other.first.expired() || other.first.lock() == m_self.lock(); });
|
||||
std::erase_if(g_pHyprOpenGL->m_layerFramebuffers, [&](const auto& other) { return other.first.expired() || other.first.lock() == m_self.lock(); });
|
||||
|
||||
for (auto const& mon : g_pCompositor->m_realMonitors) {
|
||||
for (auto& lsl : mon->m_layerSurfaceLayers) {
|
||||
|
|
|
|||
|
|
@ -143,8 +143,8 @@ void CWLSurface::destroy() {
|
|||
m_subsurfaceOwner = nullptr;
|
||||
m_inert = true;
|
||||
|
||||
if (g_pHyprRenderer && g_pHyprRenderer->m_sLastCursorData.surf && g_pHyprRenderer->m_sLastCursorData.surf->get() == this)
|
||||
g_pHyprRenderer->m_sLastCursorData.surf.reset();
|
||||
if (g_pHyprRenderer && g_pHyprRenderer->m_lastCursorData.surf && g_pHyprRenderer->m_lastCursorData.surf->get() == this)
|
||||
g_pHyprRenderer->m_lastCursorData.surf.reset();
|
||||
|
||||
m_resource.reset();
|
||||
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ CWindow::~CWindow() {
|
|||
return;
|
||||
|
||||
g_pHyprRenderer->makeEGLCurrent();
|
||||
std::erase_if(g_pHyprOpenGL->m_mWindowFramebuffers, [&](const auto& other) { return other.first.expired() || other.first.get() == this; });
|
||||
std::erase_if(g_pHyprOpenGL->m_windowFramebuffers, [&](const auto& other) { return other.first.expired() || other.first.get() == this; });
|
||||
}
|
||||
|
||||
SBoxExtents CWindow::getFullWindowExtents() {
|
||||
|
|
@ -1160,7 +1160,7 @@ bool CWindow::opaque() {
|
|||
return false;
|
||||
|
||||
if (m_isX11 && m_xwaylandSurface && m_xwaylandSurface->surface && m_xwaylandSurface->surface->m_current.texture)
|
||||
return m_xwaylandSurface->surface->m_current.texture->m_bOpaque;
|
||||
return m_xwaylandSurface->surface->m_current.texture->m_opaque;
|
||||
|
||||
if (!m_wlSurface->resource() || !m_wlSurface->resource()->m_current.texture)
|
||||
return false;
|
||||
|
|
@ -1170,7 +1170,7 @@ bool CWindow::opaque() {
|
|||
if (EXTENTS.w >= m_xdgSurface->m_surface->m_current.bufferSize.x && EXTENTS.h >= m_xdgSurface->m_surface->m_current.bufferSize.y)
|
||||
return true;
|
||||
|
||||
return m_wlSurface->resource()->m_current.texture->m_bOpaque;
|
||||
return m_wlSurface->resource()->m_current.texture->m_opaque;
|
||||
}
|
||||
|
||||
float CWindow::rounding() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue