diff --git a/lib/awful/screen.lua b/lib/awful/screen.lua index 089706442..5c2802f8f 100644 --- a/lib/awful/screen.lua +++ b/lib/awful/screen.lua @@ -213,8 +213,9 @@ end function screen.object.get_content(s) local geo = s.geometry - local source = gsurf(root.content()) - local target = source:create_similar(cairo.Content.COLOR, geo.width, geo.height) + local source = gsurf(capi.root.content()) + local target = source:create_similar(cairo.Content.COLOR, geo.width, + geo.height) local cr = cairo.Context(target) cr:set_source_surface(source, -geo.x, -geo.y) cr:rectangle(0, 0, geo.width, geo.height)