From 11c88e2503e10f17997bde8db072beac3b965410 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sun, 10 Jul 2022 20:36:32 +0200 Subject: [PATCH] apply surface width to ls geo on commit --- src/events/Layers.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/events/Layers.cpp b/src/events/Layers.cpp index 8bbb2bf6..9c4daeac 100644 --- a/src/events/Layers.cpp +++ b/src/events/Layers.cpp @@ -217,5 +217,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, layersurface->layerSurface->surface->current.width, layersurface->layerSurface->surface->current.height}; + g_pHyprRenderer->damageSurface(layersurface->layerSurface->surface, layersurface->position.x, layersurface->position.y); } \ No newline at end of file