aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/desktop/LayerSurface.cpp
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-05-11 18:31:50 +0100
committerVaxry <[email protected]>2024-05-11 18:31:50 +0100
commit494b9415a1157279a1e1782ba635fc2ef6a18155 (patch)
tree0738cf4bc4d9f523f2d2a845f8f7ba4971d6cee8 /src/desktop/LayerSurface.cpp
parentb6a7fb9e9125e56bf742f68e0ec46f52d5c34f4c (diff)
downloadHyprland-494b9415a1157279a1e1782ba635fc2ef6a18155.tar.gz
Hyprland-494b9415a1157279a1e1782ba635fc2ef6a18155.zip
layersurface: avoid restack on identical layers
ref #6014
Diffstat (limited to 'src/desktop/LayerSurface.cpp')
-rw-r--r--src/desktop/LayerSurface.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/desktop/LayerSurface.cpp b/src/desktop/LayerSurface.cpp
index 50b0a430..2312de72 100644
--- a/src/desktop/LayerSurface.cpp
+++ b/src/desktop/LayerSurface.cpp
@@ -261,6 +261,8 @@ void CLayerSurface::onCommit() {
for (auto it = PMONITOR->m_aLayerSurfaceLayers[layer].begin(); it != PMONITOR->m_aLayerSurfaceLayers[layer].end(); it++) {
if (*it == self) {
+ if (layerSurface->current.layer == layer)
+ break;
PMONITOR->m_aLayerSurfaceLayers[layerSurface->current.layer].emplace_back(*it);
PMONITOR->m_aLayerSurfaceLayers[layer].erase(it);
break;