mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 21:45:58 +01:00
guard parent in X11TransientFor
This commit is contained in:
parent
f77fac9df9
commit
095185cfe7
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue