shifty: remove unused argument from getpos()

Instead, use a generic optional `args` argument and use it to tell we
don't want to spawn anything.
This commit is contained in:
Vincent Bernat 2014-01-01 09:11:38 +01:00
parent 93f6bbc73d
commit a8f3809a85
2 changed files with 10 additions and 19 deletions

View file

@ -158,7 +158,7 @@ for i = 1, (shifty.config.maxtags or 9) do
function ()
local c = client.focus
if c then
local t = shifty.getpos(i, nil, true)
local t = shifty.getpos(i, {nospawn = true })
awful.client.movetotag(t, c)
end
end,
@ -166,7 +166,7 @@ for i = 1, (shifty.config.maxtags or 9) do
awful.key({ modkey, "Control", "Shift" }, i,
function ()
if client.focus then
awful.client.toggletag(shifty.getpos(i, nil, true))
awful.client.toggletag(shifty.getpos(i, {nospawn = true}))
end
end,
i == 5 and "Toggle this tag on this window" or nil),