mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 18:45:58 +01:00
arrange after switch
This commit is contained in:
parent
b0d91cbf3a
commit
7babcf7e6a
1 changed files with 2 additions and 2 deletions
|
@ -234,8 +234,6 @@ void Events::listener_commitLayerSurface(void* owner, void* data) {
|
|||
}
|
||||
|
||||
if (layersurface->layerSurface->current.committed != 0) {
|
||||
g_pHyprRenderer->arrangeLayersForMonitor(PMONITOR->ID);
|
||||
|
||||
if (layersurface->layer != layersurface->layerSurface->current.layer) {
|
||||
|
||||
for (auto it = PMONITOR->m_aLayerSurfaceLists[layersurface->layer].begin(); it != PMONITOR->m_aLayerSurfaceLists[layersurface->layer].end(); it++) {
|
||||
|
@ -249,6 +247,8 @@ void Events::listener_commitLayerSurface(void* owner, void* data) {
|
|||
layersurface->layer = layersurface->layerSurface->current.layer;
|
||||
}
|
||||
|
||||
g_pHyprRenderer->arrangeLayersForMonitor(PMONITOR->ID);
|
||||
|
||||
g_pLayoutManager->getCurrentLayout()->recalculateMonitor(PMONITOR->ID);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue