The error *appears* to indicate a syntax problem in the conky_draw_bg function. That's where I would focus my attention.
I can't reproduce the error, on this end, but since it involves a nil value, and (cr) is being set to nil in a previous line, I would try...
Code:
<snip>
function conky_draw_bg()
if conky_window==nil then return end
if cr==nil then cairo_destroy(cr) end
local w=conky_window.width
local h=conky_window.height
local v=vindsl_hack
local cs=cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
local cr=cairo_create(cs)
cairo_move_to(cr,corner_r,0)
cairo_line_to(cr,w-corner_r,0)
cairo_curve_to(cr,w,0,w,0,w,corner_r)
cairo_line_to(cr,w,h+v-corner_r)
cairo_curve_to(cr,w,h+v,w,h+v,w-corner_r,h+v)
cairo_line_to(cr,corner_r,h+v)
cairo_curve_to(cr,0,h+v,0,h+v,0,h+v-corner_r)
cairo_line_to(cr,0,corner_r)
cairo_curve_to(cr,0,0,0,0,corner_r,0)
cairo_close_path(cr)
cairo_set_source_rgba(cr,rgb_to_r_g_b(bg_colour,bg_alpha))
cairo_fill(cr)
end
<snip>
Just thinking out loud. Let me know if it works... or not.
Bookmarks