awful: add client.setslave()
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
d1d9d3bb52
commit
1cdd098fb1
|
@ -393,6 +393,10 @@ function hook_manage(c)
|
|||
awful.client.movetotag(tags[target.screen][target.tag], c)
|
||||
end
|
||||
|
||||
-- Set the windows at the slave,
|
||||
-- i.e. put it at the end of others instead of setting it master.
|
||||
-- awful.client.setslave(c)
|
||||
|
||||
-- Honor size hints
|
||||
c.honorsizehints = true
|
||||
end
|
||||
|
|
|
@ -331,6 +331,16 @@ function client.master(screen)
|
|||
return capi.client.visible_get(s)[1]
|
||||
end
|
||||
|
||||
-- Set the client as slave: put it at the end of other windows.
|
||||
-- @param c The window to set as slave.
|
||||
-- @return
|
||||
function client.setslave(c)
|
||||
local cls = capi.client.visible_get(c.screen)
|
||||
for k, v in pairs(cls) do
|
||||
c:swap(v)
|
||||
end
|
||||
end
|
||||
|
||||
--- Move/resize a client relative to current coordinates.
|
||||
-- @param x The relative x coordinate.
|
||||
-- @param y The relative y coordinate.
|
||||
|
|
Loading…
Reference in New Issue