summaryrefslogtreecommitdiff
path: root/src/Window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Window.cpp')
-rw-r--r--src/Window.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Window.cpp b/src/Window.cpp
index bb0c52e1..7fe14869 100644
--- a/src/Window.cpp
+++ b/src/Window.cpp
@@ -232,6 +232,9 @@ CWindow* CWindow::X11TransientFor() {
PPARENT = g_pCompositor->getWindowFromSurface(PPARENT->m_uSurface.xwayland->parent->surface);
}
+ if (!g_pCompositor->windowValidMapped(PPARENT))
+ return nullptr;
+
return PPARENT;
}