diff options
| author | Vaxry <vaxry@vaxry.net> | 2025-04-30 00:31:15 +0100 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2025-04-30 00:31:21 +0100 |
| commit | 9868b18378e99c8123a24fa4b152a58d5c0bfe67 (patch) | |
| tree | aad2a1777f987c0b59642a790e4540a78aa95dd1 /src/desktop/LayerSurface.cpp | |
| parent | 208f4c48dbe081b00262a834e083bab1b0c9fbf8 (diff) | |
input: don't use pointer hold logic for unmapped surfs
fixes #10215
Diffstat (limited to 'src/desktop/LayerSurface.cpp')
| -rw-r--r-- | src/desktop/LayerSurface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/desktop/LayerSurface.cpp b/src/desktop/LayerSurface.cpp index 96c6200e..dcbf35fe 100644 --- a/src/desktop/LayerSurface.cpp +++ b/src/desktop/LayerSurface.cpp @@ -199,7 +199,7 @@ void CLayerSurface::onUnmap() { g_pEventManager->postEvent(SHyprIPCEvent{"closelayer", m_layerSurface->layerNamespace}); EMIT_HOOK_EVENT("closeLayer", m_self.lock()); - std::erase_if(g_pInputManager->m_dExclusiveLSes, [this](const auto& other) { return !other.lock() || other.lock() == m_self.lock(); }); + std::erase_if(g_pInputManager->m_dExclusiveLSes, [this](const auto& other) { return !other || other == m_self; }); if (!m_monitor || g_pCompositor->m_unsafeState) { Debug::log(WARN, "Layersurface unmapping on invalid monitor (removed?) ignoring."); |
