titlebar: fix modkey for buttons

Signed-off-by: Gregor Best <gbe@intepi.net>
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Gregor Best 2009-08-04 20:58:34 +02:00 committed by Julien Danjou
parent 176fa70916
commit 62e73e9eaf

View file

@ -100,7 +100,7 @@ function add(c, args)
local is = 1
data[c].button_sets = {}
for i = 1, #button_groups do
local set = button_groups[i].create(c, modkey, theme)
local set = button_groups[i].create(c, args.modkey, theme)
if (set) then
data[c].button_sets[is] = set
is = is + 1