allow add_us_secondary to be turned off.

problem with test expression and nil value.
This commit is contained in:
Stefan Wagner 2015-09-23 01:24:03 +02:00
parent 9c40d29ecb
commit 823ea6537a
1 changed files with 3 additions and 1 deletions

View File

@ -22,10 +22,12 @@ local function worker (args)
local layouts = args.layouts local layouts = args.layouts
local settings = args.settings or function () end local settings = args.settings or function () end
local add_us_secondary = args.add_us_secondary or true local add_us_secondary = true
local timeout = args.timeout or 5 local timeout = args.timeout or 5
local idx = 1 local idx = 1
if args.add_us_secondary == false then add_us_secondary = false end
-- Mouse bindings -- Mouse bindings
kbdlayout.widget:buttons(awful.util.table.join( kbdlayout.widget:buttons(awful.util.table.join(