wibox: Add more constructor arguments

Fixes #916
This commit is contained in:
Emmanuel Lepage Vallee 2016-05-19 00:05:47 -04:00
parent f228257512
commit f26fa5e099
2 changed files with 15 additions and 0 deletions

View File

@ -307,6 +307,8 @@ function awfulwibar.new(arg)
end
end
arg.screen = nil
local w = wibox(arg)
w.screen = screen

View File

@ -185,6 +185,19 @@ local function new(args)
end
})
-- Set other wibox specific arguments
if args.bgimage then
ret:set_bgimage( args.bgimage )
end
if args.widget then
ret:set_widget ( args.widget )
end
if args.screen then
ret:set_screen ( args.screen )
end
return ret
end