aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/events/Layers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/events/Layers.cpp')
-rw-r--r--src/events/Layers.cpp6
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);