mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-22 18:29:50 +01:00
guard parent in X11TransientFor
This commit is contained in:
parent
095185cfe7
commit
f2d84a7e3a
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue