diff options
author | Vaxry <[email protected]> | 2024-12-18 15:01:03 +0000 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-12-18 15:01:12 +0000 |
commit | 6378c8ed65522adc432c0780eab296f7b92db183 (patch) | |
tree | b392b06cfb47f51f5305862b4c8f0ab15ddd4450 | |
parent | 49e5f9c42867e33d816d316507d7bc7a45ae0477 (diff) | |
download | Hyprland-6378c8ed65522adc432c0780eab296f7b92db183.tar.gz Hyprland-6378c8ed65522adc432c0780eab296f7b92db183.zip |
core: avoid activating toplevel-less surfaces
ref #8609
-rw-r--r-- | src/managers/XWaylandManager.cpp | 2 |
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); } |