From a431c1b01c08cdc1c2f030bebf052aa4f534d12a Mon Sep 17 00:00:00 2001 From: vaxerski Date: Sat, 4 Feb 2023 13:12:50 +0000 Subject: bring back dynamic ls geom updates --- src/events/Layers.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/events/Layers.cpp b/src/events/Layers.cpp index a6369fcd..e8c56b03 100644 --- a/src/events/Layers.cpp +++ b/src/events/Layers.cpp @@ -248,7 +248,7 @@ void Events::listener_unmapLayerSurface(void* owner, void* data) { g_pHyprRenderer->damageBox(&geomFixed); geomFixed = {layersurface->geometry.x, layersurface->geometry.y, (int)layersurface->layerSurface->current.actual_width, (int)layersurface->layerSurface->current.actual_height}; - // layersurface->geometry = geomFixed; // because the surface can overflow... for some reason? + layersurface->geometry = geomFixed; // because the surface can overflow... for some reason? } void Events::listener_commitLayerSurface(void* owner, void* data) { @@ -310,8 +310,8 @@ void Events::listener_commitLayerSurface(void* owner, void* data) { layersurface->position = Vector2D(layersurface->geometry.x, layersurface->geometry.y); // update geom if it changed - // layersurface->geometry = {layersurface->geometry.x, layersurface->geometry.y, (int)layersurface->layerSurface->current.actual_width, - // (int)layersurface->layerSurface->current.actual_height}; + layersurface->geometry = {layersurface->geometry.x, layersurface->geometry.y, (int)layersurface->layerSurface->current.actual_width, + (int)layersurface->layerSurface->current.actual_height}; g_pHyprRenderer->damageSurface(layersurface->layerSurface->surface, layersurface->position.x, layersurface->position.y); -- cgit v1.2.3