From 0ebb43c1a37e7321e5ed7223ea85ed555cc82735 Mon Sep 17 00:00:00 2001 From: shezdy <77217897+shezdy@users.noreply.github.com> Date: Sat, 1 Jun 2024 12:45:30 -0600 Subject: [PATCH] renderer: fix xwayland solitary rechecks (#6295) --- src/desktop/Window.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/desktop/Window.cpp b/src/desktop/Window.cpp index 60592452cac..32f4d8825cb 100644 --- a/src/desktop/Window.cpp +++ b/src/desktop/Window.cpp @@ -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;