awful.client: movetotag() move client to the screen tag

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-08-24 16:09:56 +02:00
parent b8de5f2d43
commit 6bad89fc2c
1 changed files with 3 additions and 3 deletions

View File

@ -424,9 +424,9 @@ end
-- @param c Optional client to move, otherwise the focused one is used.
function movetotag(target, c)
local sel = c or capi.client.focus
if sel then
-- Check that tag and client screen are identical
if sel.screen ~= target.screen then return end
if sel and target.screen then
-- Set client on the same screen as the tag.
sel.screen = target.screen
sel:tags({ target })
end
end