fix(slots.client) iterate over bindings parameters

This commit is contained in:
Aire-One 2021-10-15 01:14:07 +02:00
parent 4d0f0b9be3
commit 903e2a64db
1 changed files with 6 additions and 2 deletions

View File

@ -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