diff --git a/lib/awful/wibar.lua b/lib/awful/wibar.lua index c2c2757ab..912dcbe68 100644 --- a/lib/awful/wibar.lua +++ b/lib/awful/wibar.lua @@ -307,6 +307,8 @@ function awfulwibar.new(arg) end end + arg.screen = nil + local w = wibox(arg) w.screen = screen diff --git a/lib/wibox/init.lua b/lib/wibox/init.lua index 7e56f8c2f..3bbef695b 100644 --- a/lib/wibox/init.lua +++ b/lib/wibox/init.lua @@ -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