tests: Draw the wallpaper in the awful template

This commit is contained in:
Emmanuel Lepage Vallee 2021-06-14 00:54:50 -07:00
parent dcdc6a1089
commit 580f16b7ff
1 changed files with 13 additions and 1 deletions

View File

@ -58,11 +58,23 @@ if not rawget(screen, "no_outline") then
end
end
-- Draw the wallpaper (if any).
if root._wallpaper_pattern then
cr:set_source_rgb(1,0,0)
cr:set_line_width(2)
cr:rectangle(0, 0, root.size())
cr:stroke()
cr:set_source(root._wallpaper_pattern)
cr:rectangle(0, 0, root.size())
cr:fill()
cr:paint()
end
cr:set_line_width(beautiful.border_width/2)
cr:set_source(color(beautiful.border_color))
local rect = {x1 = 0 ,y1 = 0 , x2 = 0 , y2 = 0}
-- Get the region with wiboxes