awesomerc: fix screen computing in window tagging

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-07-23 15:29:57 +02:00
parent 0812a54bb7
commit 6dc3204208
1 changed files with 10 additions and 6 deletions

View File

@ -186,16 +186,20 @@ for i = 1, keynumber do
end):add()
keybinding({ modkey, "Shift" }, i,
function ()
local screen = mouse.screen
if tags[screen][i] then
awful.client.movetotag(tags[screen][i])
local sel = client.focus_get()
if sel then
if tags[sel.screen][i] then
awful.client.movetotag(tags[sel.screen][i])
end
end
end):add()
keybinding({ modkey, "Control", "Shift" }, i,
function ()
local screen = mouse.screen
if tags[screen][i] then
awful.client.toggletag(tags[screen][i])
local sel = client.focus_get()
if sel then
if tags[sel.screen][i] then
awful.client.toggletag(tags[sel.screen][i])
end
end
end):add()
end