awful: movetotag: check that tag and client screen are identical

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-07-28 16:06:06 +02:00
parent 80b79717ba
commit 354af424ba
1 changed files with 2 additions and 0 deletions

View File

@ -283,7 +283,9 @@ end
-- @para c Optional client to move, otherwise the focused one is used.
function P.client.movetotag(target, c)
local sel = c or client.focus_get();
if sel.screen ~= target.screen then return end
local tags = tag.get(sel.screen)
-- Check that tags and client screen are identical
for k, t in pairs(tags) do
sel:tag(t, false)
end