awful: movetotag: check that tag and client screen are identical
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
80b79717ba
commit
354af424ba
|
@ -283,7 +283,9 @@ end
|
||||||
-- @para c Optional client to move, otherwise the focused one is used.
|
-- @para c Optional client to move, otherwise the focused one is used.
|
||||||
function P.client.movetotag(target, c)
|
function P.client.movetotag(target, c)
|
||||||
local sel = c or client.focus_get();
|
local sel = c or client.focus_get();
|
||||||
|
if sel.screen ~= target.screen then return end
|
||||||
local tags = tag.get(sel.screen)
|
local tags = tag.get(sel.screen)
|
||||||
|
-- Check that tags and client screen are identical
|
||||||
for k, t in pairs(tags) do
|
for k, t in pairs(tags) do
|
||||||
sel:tag(t, false)
|
sel:tag(t, false)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue