beautiful.theme_assets: Use screen geometry instead of workarea (#1462)
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
bf2c1993db
commit
5191fcbdd2
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue