awful.client: Automatically select the current client during a toggle

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
dcurtis@cs.uiowa.edu 2009-02-24 11:08:22 +01:00 committed by Julien Danjou
parent e2bfc1ca5f
commit 8f7ecb798d
1 changed files with 1 additions and 0 deletions

View File

@ -603,6 +603,7 @@ end
--- Toggle the floating state of a client between 'auto' and 'true'.
-- @param c A client.
function floating.toggle(c)
local c = c or capi.client.focus
-- If it has been set to floating
if property.get(c, "floating") then
floating.set(c, nil)