aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/desktop/Window.cpp
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-07-31 20:47:26 +0100
committerGitHub <[email protected]>2024-07-31 21:47:26 +0200
commit37e1411e8d94fe8f3fb678588a7df9b8f931910f (patch)
treece91aa3984b646f8a8569976edb8e78c85919ee5 /src/desktop/Window.cpp
parent548968279926a73d7ff19a9a185c977c50d56756 (diff)
downloadHyprland-37e1411e8d94fe8f3fb678588a7df9b8f931910f.tar.gz
Hyprland-37e1411e8d94fe8f3fb678588a7df9b8f931910f.zip
core/surface/buffer: Buffer lock/release fixes (#7110)
Diffstat (limited to 'src/desktop/Window.cpp')
-rw-r--r--src/desktop/Window.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/desktop/Window.cpp b/src/desktop/Window.cpp
index 9316959d..27010454 100644
--- a/src/desktop/Window.cpp
+++ b/src/desktop/Window.cpp
@@ -1097,18 +1097,18 @@ bool CWindow::opaque() {
if (PWORKSPACE->m_fAlpha.value() != 1.f)
return false;
- if (m_bIsX11 && m_pXWaylandSurface && m_pXWaylandSurface->surface && m_pXWaylandSurface->surface->current.buffer)
- return m_pXWaylandSurface->surface->current.buffer->opaque;
+ if (m_bIsX11 && m_pXWaylandSurface && m_pXWaylandSurface->surface && m_pXWaylandSurface->surface->current.texture)
+ return m_pXWaylandSurface->surface->current.texture->m_bOpaque;
- if (!m_pWLSurface->resource() || !m_pWLSurface->resource()->current.buffer)
+ if (!m_pWLSurface->resource() || !m_pWLSurface->resource()->current.texture)
return false;
// TODO: this is wrong
const auto EXTENTS = m_pXDGSurface->surface->current.opaque.getExtents();
- if (EXTENTS.w >= m_pXDGSurface->surface->current.buffer->size.x && EXTENTS.h >= m_pXDGSurface->surface->current.buffer->size.y)
+ if (EXTENTS.w >= m_pXDGSurface->surface->current.bufferSize.x && EXTENTS.h >= m_pXDGSurface->surface->current.bufferSize.y)
return true;
- return m_pWLSurface->resource()->current.buffer->opaque;
+ return m_pWLSurface->resource()->current.texture->m_bOpaque;
}
float CWindow::rounding() {