diff options
| author | s1dd <140317709+nots1dd@users.noreply.github.com> | 2025-05-09 00:31:49 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-08 21:01:49 +0200 |
| commit | f01e3043b81d1ad7d886f0502b445bdf3cea0ccc (patch) | |
| tree | f67ac13301e9c3a08175dba521198e9ff3c7737f /src/desktop/LayerSurface.cpp | |
| parent | 04c98abd1fe7f3d63c6060ea175e0a5cd9cd9947 (diff) | |
desktop: cleanup code and use std::ranges (#10289)
Diffstat (limited to 'src/desktop/LayerSurface.cpp')
| -rw-r--r-- | src/desktop/LayerSurface.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/desktop/LayerSurface.cpp b/src/desktop/LayerSurface.cpp index a5d9067a..f913b658 100644 --- a/src/desktop/LayerSurface.cpp +++ b/src/desktop/LayerSurface.cpp @@ -186,7 +186,7 @@ void CLayerSurface::onMap() { m_readyToDelete = false; m_fadingOut = false; - g_pEventManager->postEvent(SHyprIPCEvent{"openlayer", m_namespace}); + g_pEventManager->postEvent(SHyprIPCEvent{.event = "openlayer", .data = m_namespace}); EMIT_HOOK_EVENT("openLayer", m_self.lock()); g_pCompositor->setPreferredScaleForSurface(m_surface->resource(), PMONITOR->m_scale); @@ -196,7 +196,7 @@ void CLayerSurface::onMap() { void CLayerSurface::onUnmap() { Debug::log(LOG, "LayerSurface {:x} unmapped", (uintptr_t)m_layerSurface.get()); - g_pEventManager->postEvent(SHyprIPCEvent{"closelayer", m_layerSurface->m_layerNamespace}); + g_pEventManager->postEvent(SHyprIPCEvent{.event = "closelayer", .data = m_layerSurface->m_layerNamespace}); EMIT_HOOK_EVENT("closeLayer", m_self.lock()); std::erase_if(g_pInputManager->m_exclusiveLSes, [this](const auto& other) { return !other || other == m_self; }); |
