mirror of
https://github.com/hyprwm/Hyprland
synced 2025-02-17 01:22:08 +01:00
parent
b6a7fb9e91
commit
494b9415a1
1 changed files with 2 additions and 0 deletions
|
@ -261,6 +261,8 @@ void CLayerSurface::onCommit() {
|
||||||
|
|
||||||
for (auto it = PMONITOR->m_aLayerSurfaceLayers[layer].begin(); it != PMONITOR->m_aLayerSurfaceLayers[layer].end(); it++) {
|
for (auto it = PMONITOR->m_aLayerSurfaceLayers[layer].begin(); it != PMONITOR->m_aLayerSurfaceLayers[layer].end(); it++) {
|
||||||
if (*it == self) {
|
if (*it == self) {
|
||||||
|
if (layerSurface->current.layer == layer)
|
||||||
|
break;
|
||||||
PMONITOR->m_aLayerSurfaceLayers[layerSurface->current.layer].emplace_back(*it);
|
PMONITOR->m_aLayerSurfaceLayers[layerSurface->current.layer].emplace_back(*it);
|
||||||
PMONITOR->m_aLayerSurfaceLayers[layer].erase(it);
|
PMONITOR->m_aLayerSurfaceLayers[layer].erase(it);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue