renderer: fix xwayland solitary rechecks (#6295)

This commit is contained in:
shezdy
2024-06-01 12:45:30 -06:00
committed by GitHub
parent a54ab30160
commit 0ebb43c1a3

View File

@@ -1139,8 +1139,8 @@ bool CWindow::opaque() {
if (PWORKSPACE->m_fAlpha.value() != 1.f)
return false;
if (m_bIsX11)
return false;
if (m_bIsX11 && m_pXWaylandSurface && m_pXWaylandSurface->surface)
return m_pXWaylandSurface->surface->opaque;
if (m_pXDGSurface && m_pXDGSurface->surface->opaque)
return true;