awesomerc: fix screen computing in window tagging
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
0812a54bb7
commit
6dc3204208
|
@ -186,16 +186,20 @@ for i = 1, keynumber do
|
||||||
end):add()
|
end):add()
|
||||||
keybinding({ modkey, "Shift" }, i,
|
keybinding({ modkey, "Shift" }, i,
|
||||||
function ()
|
function ()
|
||||||
local screen = mouse.screen
|
local sel = client.focus_get()
|
||||||
if tags[screen][i] then
|
if sel then
|
||||||
awful.client.movetotag(tags[screen][i])
|
if tags[sel.screen][i] then
|
||||||
|
awful.client.movetotag(tags[sel.screen][i])
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end):add()
|
end):add()
|
||||||
keybinding({ modkey, "Control", "Shift" }, i,
|
keybinding({ modkey, "Control", "Shift" }, i,
|
||||||
function ()
|
function ()
|
||||||
local screen = mouse.screen
|
local sel = client.focus_get()
|
||||||
if tags[screen][i] then
|
if sel then
|
||||||
awful.client.toggletag(tags[screen][i])
|
if tags[sel.screen][i] then
|
||||||
|
awful.client.toggletag(tags[sel.screen][i])
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end):add()
|
end):add()
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue