diff --git a/lib/gears/wallpaper.lua.in b/lib/gears/wallpaper.lua.in index c19c39ad4..e3e41ac16 100644 --- a/lib/gears/wallpaper.lua.in +++ b/lib/gears/wallpaper.lua.in @@ -138,6 +138,8 @@ function wallpaper.maximized(surf, s, ignore_aspect, offset) if offset then cr:translate(offset.x, offset.y) + elseif not ignore_aspect then + cr:translate(((geom.width / aspect_w) - w) / 2, ((geom.height / aspect_h) - h) / 2) end cr:set_source_surface(surf, 0, 0)