diff --git a/lib/menubar/init.lua b/lib/menubar/init.lua index 286496d8..c85b982e 100644 --- a/lib/menubar/init.lua +++ b/lib/menubar/init.lua @@ -415,7 +415,7 @@ function menubar.show(scr) -- Set position and size scr = scr or awful.screen.focused() or 1 scr = get_screen(scr) - local scrgeom = capi.screen[scr].workarea + local scrgeom = scr.workarea local geometry = menubar.geometry instance.geometry = {x = geometry.x or scrgeom.x, y = geometry.y or scrgeom.y,