summaryrefslogtreecommitdiff
path: root/src/desktop/LayerSurface.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-05-11 14:43:39 +0100
committerVaxry <vaxry@vaxry.net>2024-05-11 14:43:44 +0100
commitb6a7fb9e9125e56bf742f68e0ec46f52d5c34f4c (patch)
tree308a23db7611f9949c2068a575e63df44a1be443 /src/desktop/LayerSurface.cpp
parent3529fbc6d4db298c4d50a39732e59ca38b463c9f (diff)
layersurface: fix invalid use of std::move
fixes #6014
Diffstat (limited to 'src/desktop/LayerSurface.cpp')
-rw-r--r--src/desktop/LayerSurface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/desktop/LayerSurface.cpp b/src/desktop/LayerSurface.cpp
index 8bff5850..50b0a430 100644
--- a/src/desktop/LayerSurface.cpp
+++ b/src/desktop/LayerSurface.cpp
@@ -261,7 +261,7 @@ void CLayerSurface::onCommit() {
for (auto it = PMONITOR->m_aLayerSurfaceLayers[layer].begin(); it != PMONITOR->m_aLayerSurfaceLayers[layer].end(); it++) {
if (*it == self) {
- PMONITOR->m_aLayerSurfaceLayers[layerSurface->current.layer].emplace_back(std::move(*it));
+ PMONITOR->m_aLayerSurfaceLayers[layerSurface->current.layer].emplace_back(*it);
PMONITOR->m_aLayerSurfaceLayers[layer].erase(it);
break;
}