From f2d84a7e3a323875c2e298094106a55ec21a3947 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Thu, 1 Sep 2022 10:16:23 +0200 Subject: [PATCH] guard parent in X11TransientFor --- src/Window.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; }