awful.client: movetotag() move client to the screen tag
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
b8de5f2d43
commit
6bad89fc2c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue