beautiful.theme_assets: Use screen geometry instead of workarea (#1462)

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2017-01-28 15:05:53 +01:00 committed by Daniel Hahler
parent bf2c1993db
commit 5191fcbdd2
1 changed files with 2 additions and 2 deletions

View File

@ -188,8 +188,8 @@ end
-- @return Wallpaper image. -- @return Wallpaper image.
function theme_assets.wallpaper(bg, fg, alt_fg, s) function theme_assets.wallpaper(bg, fg, alt_fg, s)
s = s or screen.primary s = s or screen.primary
local height = s.workarea.height local height = s.geometry.height
local width = s.workarea.width local width = s.geometry.width
local img = cairo.RecordingSurface(cairo.Content.COLOR, local img = cairo.RecordingSurface(cairo.Content.COLOR,
cairo.Rectangle { x = 0, y = 0, width = width, height = height }) cairo.Rectangle { x = 0, y = 0, width = width, height = height })
local cr = cairo.Context(img) local cr = cairo.Context(img)