diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-05-11 18:31:50 +0100 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-05-11 18:31:50 +0100 |
| commit | 494b9415a1157279a1e1782ba635fc2ef6a18155 (patch) | |
| tree | 0738cf4bc4d9f523f2d2a845f8f7ba4971d6cee8 /src/desktop/LayerSurface.cpp | |
| parent | b6a7fb9e9125e56bf742f68e0ec46f52d5c34f4c (diff) | |
layersurface: avoid restack on identical layers
ref #6014
Diffstat (limited to 'src/desktop/LayerSurface.cpp')
| -rw-r--r-- | src/desktop/LayerSurface.cpp | 2 |
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; |
