awful.client: Automatically select the current client during a toggle
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
e2bfc1ca5f
commit
8f7ecb798d
|
@ -603,6 +603,7 @@ end
|
||||||
--- Toggle the floating state of a client between 'auto' and 'true'.
|
--- Toggle the floating state of a client between 'auto' and 'true'.
|
||||||
-- @param c A client.
|
-- @param c A client.
|
||||||
function floating.toggle(c)
|
function floating.toggle(c)
|
||||||
|
local c = c or capi.client.focus
|
||||||
-- If it has been set to floating
|
-- If it has been set to floating
|
||||||
if property.get(c, "floating") then
|
if property.get(c, "floating") then
|
||||||
floating.set(c, nil)
|
floating.set(c, nil)
|
||||||
|
|
Loading…
Reference in New Issue