awful: check for sel.screen after sel
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
a7c7ab2eb0
commit
0826351a72
|
@ -519,9 +519,9 @@ end
|
||||||
function client.toggletag(target, c)
|
function client.toggletag(target, c)
|
||||||
local sel = c or capi.client.focus_get();
|
local sel = c or capi.client.focus_get();
|
||||||
-- Check that tag and client screen are identical
|
-- Check that tag and client screen are identical
|
||||||
if sel.screen ~= target.screen then return end
|
|
||||||
local toggle = false
|
local toggle = false
|
||||||
if sel then
|
if sel then
|
||||||
|
if sel.screen ~= target.screen then return end
|
||||||
-- Count how many tags has the client
|
-- Count how many tags has the client
|
||||||
-- an only toggle tag if the client has at least one tag other than target
|
-- an only toggle tag if the client has at least one tag other than target
|
||||||
for k, v in pairs(capi.tag.get(sel.screen)) do
|
for k, v in pairs(capi.tag.get(sel.screen)) do
|
||||||
|
|
Loading…
Reference in New Issue