awesomeWM/awesome — pull request #38 by SammysHP (2014-06-08 18:20:55+00:00)
Title: gears.wallpaper: Center maximized if no offset set

maximized() used to align the image with (0,0) so that it is shifted to the right or bottom. Most wallpapers are designed from the center, so this behavior is not desired usually. With this commit the wallpaper is centered when no offset is set. To get the old behavior use {x=0, y=0} for the offset parameter.

WARNING: This pull request changes the default behavior for `gears.wallpaper.maximized()`, however it uses the parameters efficiently (other ways would be to use a table for the arguments (inconsistent with other wallpaper methods) or skipping the offset argument with `nil`).