From 8f7ecb798d10bab1b045fc6106328b569fd9fd21 Mon Sep 17 00:00:00 2001 From: "dcurtis@cs.uiowa.edu" Date: Tue, 24 Feb 2009 11:08:22 +0100 Subject: [PATCH] awful.client: Automatically select the current client during a toggle Signed-off-by: Julien Danjou --- lib/awful/client.lua.in | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/awful/client.lua.in b/lib/awful/client.lua.in index 48fd6b6e..dffc1f94 100644 --- a/lib/awful/client.lua.in +++ b/lib/awful/client.lua.in @@ -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)