mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-25 23:46:00 +01:00
apply surface width to ls geo on commit
This commit is contained in:
parent
4b334594dc
commit
11c88e2503
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
Loading…
Reference in a new issue