mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-05 06:45:59 +01:00
4
This commit is contained in:
parent
5f23e545f6
commit
0ec0048c66
1 changed files with 3 additions and 3 deletions
|
@ -195,14 +195,14 @@ void Events::listener_commitLayerSurface(void* owner, void* data) {
|
||||||
g_pHyprRenderer->damageBox(&geomFixed);
|
g_pHyprRenderer->damageBox(&geomFixed);
|
||||||
|
|
||||||
// fix if it changed its mon
|
// fix if it changed its mon
|
||||||
if ((uint64_t)layersurface->monitorID != PMONITOR->ID) {
|
/*if ((uint64_t)layersurface->monitorID != PMONITOR->ID) {
|
||||||
const auto POLDMON = g_pCompositor->getMonitorFromID(layersurface->monitorID);
|
const auto POLDMON = g_pCompositor->getMonitorFromID(layersurface->monitorID);
|
||||||
POLDMON->m_aLayerSurfaceLists[layersurface->layer].remove(layersurface);
|
POLDMON->m_aLayerSurfaceLists[layersurface->layer].remove(layersurface);
|
||||||
PMONITOR->m_aLayerSurfaceLists[layersurface->layer].push_back(layersurface);
|
PMONITOR->m_aLayerSurfaceLists[layersurface->layer].push_back(layersurface);
|
||||||
layersurface->monitorID = PMONITOR->ID;
|
layersurface->monitorID = PMONITOR->ID;
|
||||||
g_pLayoutManager->getCurrentLayout()->recalculateMonitor(POLDMON->ID);
|
g_pLayoutManager->getCurrentLayout()->recalculateMonitor(POLDMON->ID);
|
||||||
g_pHyprRenderer->arrangeLayersForMonitor(POLDMON->ID);
|
g_pHyprRenderer->arrangeLayersForMonitor(POLDMON->ID);
|
||||||
}
|
}*/
|
||||||
|
|
||||||
if (layersurface->layerSurface->current.committed != 0) {
|
if (layersurface->layerSurface->current.committed != 0) {
|
||||||
g_pHyprRenderer->arrangeLayersForMonitor(PMONITOR->ID);
|
g_pHyprRenderer->arrangeLayersForMonitor(PMONITOR->ID);
|
||||||
|
@ -221,5 +221,5 @@ void Events::listener_commitLayerSurface(void* owner, void* data) {
|
||||||
// update geom if it changed
|
// update geom if it changed
|
||||||
layersurface->geometry = {layersurface->geometry.x, layersurface->geometry.y, layersurface->layerSurface->surface->current.width, layersurface->layerSurface->surface->current.height};
|
layersurface->geometry = {layersurface->geometry.x, layersurface->geometry.y, layersurface->layerSurface->surface->current.width, layersurface->layerSurface->surface->current.height};
|
||||||
|
|
||||||
// g_pHyprRenderer->damageSurface(layersurface->layerSurface->surface, layersurface->position.x, layersurface->position.y);
|
g_pHyprRenderer->damageSurface(layersurface->layerSurface->surface, layersurface->position.x, layersurface->position.y);
|
||||||
}
|
}
|
Loading…
Reference in a new issue