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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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