awful: check for selected
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
2900127619
commit
eb2eb9c30b
|
@ -487,10 +487,12 @@ end
|
|||
-- @para c Optional client to move, otherwise the focused one is used.
|
||||
function client.movetotag(target, c)
|
||||
local sel = c or capi.client.focus_get();
|
||||
-- Check that tag and client screen are identical
|
||||
if sel.screen ~= target.screen then return end
|
||||
local tags = { target }
|
||||
sel.tags = tags
|
||||
if sel then
|
||||
-- Check that tag and client screen are identical
|
||||
if sel.screen ~= target.screen then return end
|
||||
local tags = { target }
|
||||
sel.tags = tags
|
||||
end
|
||||
end
|
||||
|
||||
--- Toggle a tag on a client.
|
||||
|
|
Loading…
Reference in New Issue