fix(slots.client) iterate over bindings parameters
This commit is contained in:
parent
4d0f0b9be3
commit
903e2a64db
|
@ -3,13 +3,17 @@ local client_slots = {}
|
|||
function client_slots.append_mousebindings (params)
|
||||
local amouse = require 'awful.mouse'
|
||||
|
||||
amouse.append_client_mousebindings(params.mousebindings)
|
||||
for _,bindings in pairs(params.mousebindings) do
|
||||
amouse.append_client_mousebindings(bindings)
|
||||
end
|
||||
end
|
||||
|
||||
function client_slots.append_keybindings (params)
|
||||
local akeyboard = require 'awful.keyboard'
|
||||
|
||||
akeyboard.append_client_keybindings(params.keybindings)
|
||||
for _,bindings in pairs(params.keybindings) do
|
||||
akeyboard.append_client_keybindings(bindings)
|
||||
end
|
||||
end
|
||||
|
||||
return client_slots
|
||||
|
|
Loading…
Reference in New Issue