summaryrefslogtreecommitdiff
path: root/src/events/Layers.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-07-06 21:57:35 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-07-06 21:57:35 +0200
commit6a16f11d63cead0b8526f442c18727a6f3dc76ea (patch)
tree1993c7d56496a16ba6d3470b851a6d4bdcdb6c97 /src/events/Layers.cpp
parenta545992891668d9872bed04b76d3b35b32dc0796 (diff)
add namespace to hyprctl layers
Diffstat (limited to 'src/events/Layers.cpp')
-rw-r--r--src/events/Layers.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/events/Layers.cpp b/src/events/Layers.cpp
index 773ba909..495dfc1b 100644
--- a/src/events/Layers.cpp
+++ b/src/events/Layers.cpp
@@ -32,8 +32,9 @@ void Events::listener_newLayerSurface(wl_listener* listener, void* data) {
}
const auto PMONITOR = (SMonitor*)g_pCompositor->getMonitorFromOutput(WLRLAYERSURFACE->output);
- PMONITOR->m_aLayerSurfaceLists[WLRLAYERSURFACE->pending.layer].push_back(new SLayerSurface());
- SLayerSurface* layerSurface = PMONITOR->m_aLayerSurfaceLists[WLRLAYERSURFACE->pending.layer].back();
+ SLayerSurface* layerSurface = PMONITOR->m_aLayerSurfaceLists[WLRLAYERSURFACE->pending.layer].emplace_back(new SLayerSurface());
+
+ layerSurface->szNamespace = WLRLAYERSURFACE->_namespace;
if (!WLRLAYERSURFACE->output) {
WLRLAYERSURFACE->output = g_pCompositor->m_vMonitors.front()->output; // TODO: current mon