diff --git a/lib/awful/wibox.lua.in b/lib/awful/wibox.lua.in index 372d4dd90..d82d359a2 100644 --- a/lib/awful/wibox.lua.in +++ b/lib/awful/wibox.lua.in @@ -218,6 +218,8 @@ function new(arg) local position = arg.position or "top" local has_to_stretch = true + arg.type = arg.type or "dock" + if position ~= "top" and position ~="bottom" and position ~= "left" and position ~= "right" then error("Invalid position in awful.wibox(), you may only use"