awful.menu: set some vars as local
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
2b0d3f6ab2
commit
e584da44ae
|
@ -95,7 +95,7 @@ local function get_parents(menu)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function exec(menu, num, mouse_event)
|
local function exec(menu, num, mouse_event)
|
||||||
cmd = menu.items[num].cmd
|
local cmd = menu.items[num].cmd
|
||||||
if type(cmd) == "table" then
|
if type(cmd) == "table" then
|
||||||
if #cmd == 0 then
|
if #cmd == 0 then
|
||||||
return
|
return
|
||||||
|
@ -246,7 +246,7 @@ function clients(menu)
|
||||||
|
|
||||||
menu.items = cls_t
|
menu.items = cls_t
|
||||||
|
|
||||||
m = new(menu)
|
local m = new(menu)
|
||||||
m:show()
|
m:show()
|
||||||
return m
|
return m
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue