aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-12-18 15:01:03 +0000
committerVaxry <[email protected]>2024-12-18 15:01:12 +0000
commit6378c8ed65522adc432c0780eab296f7b92db183 (patch)
treeb392b06cfb47f51f5305862b4c8f0ab15ddd4450
parent49e5f9c42867e33d816d316507d7bc7a45ae0477 (diff)
downloadHyprland-6378c8ed65522adc432c0780eab296f7b92db183.tar.gz
Hyprland-6378c8ed65522adc432c0780eab296f7b92db183.zip
core: avoid activating toplevel-less surfaces
ref #8609
-rw-r--r--src/managers/XWaylandManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/managers/XWaylandManager.cpp b/src/managers/XWaylandManager.cpp
index 5e5c6262..ca31752d 100644
--- a/src/managers/XWaylandManager.cpp
+++ b/src/managers/XWaylandManager.cpp
@@ -47,7 +47,7 @@ void CHyprXWaylandManager::activateSurface(SP<CWLSurfaceResource> pSurface, bool
}
PWINDOW->m_pXWaylandSurface->activate(activate);
}
- } else if (PWINDOW->m_pXDGSurface)
+ } else if (PWINDOW->m_pXDGSurface && PWINDOW->m_pXDGSurface->toplevel)
PWINDOW->m_pXDGSurface->toplevel->setActive(activate);
}