summaryrefslogtreecommitdiff
path: root/src/desktop/Window.cpp
diff options
context:
space:
mode:
authorshezdy <77217897+shezdy@users.noreply.github.com>2024-06-01 12:45:30 -0600
committerGitHub <noreply@github.com>2024-06-01 20:45:30 +0200
commit0ebb43c1a37e7321e5ed7223ea85ed555cc82735 (patch)
tree9f3e8ebd080d57f3957a886eff6626d3b9b9e723 /src/desktop/Window.cpp
parenta54ab301602e205f273969c093cf494d38ba4a98 (diff)
renderer: fix xwayland solitary rechecks (#6295)
Diffstat (limited to 'src/desktop/Window.cpp')
-rw-r--r--src/desktop/Window.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/desktop/Window.cpp b/src/desktop/Window.cpp
index 60592452..32f4d882 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;