diff --git a/lib/wibox/widget/textbox.lua.in b/lib/wibox/widget/textbox.lua.in index b42e8615..d7e42953 100644 --- a/lib/wibox/widget/textbox.lua.in +++ b/lib/wibox/widget/textbox.lua.in @@ -49,7 +49,7 @@ end --- Draw the given textbox on the given cairo context in the given geometry function draw(box, wibox, cr, width, height) layout_update(cr, box._layout) - local ink, logical = layout:get_pixel_extents() + local ink, logical = box._layout:get_pixel_extents() local offset = 0 if box._valign == "center" then offset = (height - logical.height) / 2