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