diff options
author | vaxerski <[email protected]> | 2023-02-04 13:12:50 +0000 |
---|---|---|
committer | vaxerski <[email protected]> | 2023-02-04 13:12:56 +0000 |
commit | a431c1b01c08cdc1c2f030bebf052aa4f534d12a (patch) | |
tree | 9f71d16c877e9bcd99726bf524d7c1a98d72e8bc | |
parent | bd2245d642f700ac736cd8349352917ef5340dbc (diff) | |
download | Hyprland-a431c1b01c08cdc1c2f030bebf052aa4f534d12a.tar.gz Hyprland-a431c1b01c08cdc1c2f030bebf052aa4f534d12a.zip |
bring back dynamic ls geom updates
-rw-r--r-- | src/events/Layers.cpp | 6 |
1 files 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); |