summaryrefslogtreecommitdiff
path: root/src/Window.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-09-01 10:15:55 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-09-01 10:15:55 +0200
commit095185cfe795fc48a1710eabe9823324fa593fb1 (patch)
tree5f59202f3b876dcb75282f218c9283c9a152ab8d /src/Window.cpp
parentf77fac9df9c6619fe70f2b951a623095ed9d753a (diff)
guard parent in X11TransientFor
Diffstat (limited to 'src/Window.cpp')
-rw-r--r--src/Window.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Window.cpp b/src/Window.cpp
index e7abb6e1..bb0c52e1 100644
--- a/src/Window.cpp
+++ b/src/Window.cpp
@@ -228,7 +228,7 @@ CWindow* CWindow::X11TransientFor() {
auto PPARENT = g_pCompositor->getWindowFromSurface(m_uSurface.xwayland->parent->surface);
- while (PPARENT->m_uSurface.xwayland->parent) {
+ while (g_pCompositor->windowValidMapped(PPARENT) && PPARENT->m_uSurface.xwayland->parent) {
PPARENT = g_pCompositor->getWindowFromSurface(PPARENT->m_uSurface.xwayland->parent->surface);
}