summaryrefslogtreecommitdiff
path: root/src/desktop
diff options
context:
space:
mode:
authordavc0n <dconti.dev@gmail.com>2025-05-05 23:44:49 +0200
committerGitHub <noreply@github.com>2025-05-05 23:44:49 +0200
commit997fefbc1113323ed2bf5d782bdafc0d17532647 (patch)
tree0368c8c41b6566492b5c68b03e3f23591fa28af8 /src/desktop
parentc7eb14109865aa6a057b6cd2e36312da80da9caa (diff)
render: refactor class member vars (#10292)
* render: refactor class member vars * render: fix clang format
Diffstat (limited to 'src/desktop')
-rw-r--r--src/desktop/LayerSurface.cpp2
-rw-r--r--src/desktop/WLSurface.cpp4
-rw-r--r--src/desktop/Window.cpp6
3 files changed, 6 insertions, 6 deletions
diff --git a/src/desktop/LayerSurface.cpp b/src/desktop/LayerSurface.cpp
index 61cca488..a5d9067a 100644
--- a/src/desktop/LayerSurface.cpp
+++ b/src/desktop/LayerSurface.cpp
@@ -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) {
diff --git a/src/desktop/WLSurface.cpp b/src/desktop/WLSurface.cpp
index 853f14c0..a7b9e620 100644
--- a/src/desktop/WLSurface.cpp
+++ b/src/desktop/WLSurface.cpp
@@ -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();
diff --git a/src/desktop/Window.cpp b/src/desktop/Window.cpp
index a8fcf3a1..6e6e51a1 100644
--- a/src/desktop/Window.cpp
+++ b/src/desktop/Window.cpp
@@ -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() {