diff --git a/themes/xresources/assets.lua b/themes/xresources/assets.lua index e7a7db72..c8355024 100644 --- a/themes/xresources/assets.lua +++ b/themes/xresources/assets.lua @@ -51,7 +51,8 @@ function theme_assets.wallpaper(bg, fg, alt_fg, s) s = s or screen.primary local height = s.workarea.height local width = s.workarea.width - local img = cairo.ImageSurface(cairo.Format.ARGB32, width, height) + local img = cairo.RecordingSurface(cairo.Content.COLOR, + cairo.Rectangle { x = 0, y = 0, width = width, height = height }) local cr = cairo.Context(img) local letter_size = height/10