From be28925fb63ceebc0b0acc4406ff28f68a4de8f6 Mon Sep 17 00:00:00 2001 From: Mariusz Ceier Date: Sun, 8 Feb 2009 02:09:33 +0100 Subject: [PATCH] Fix killproperty and floating.delete Use new API, so they don't emit lua errors: W: awesome: luaA_dofunction:317: error running function: /usr/share/awesome/lib/awful/client.lua:595: attempt to index field 'floating' (a nil value) W: awesome: luaA_dofunction:317: error running function: /usr/share/awesome/lib/awful/client.lua:761: attempt to index field 'property' (a nil value) Signed-off-by: Mariusz Ceier Signed-off-by: Julien Danjou --- lib/awful/client.lua.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/awful/client.lua.in b/lib/awful/client.lua.in index 369dc1172..049793757 100644 --- a/lib/awful/client.lua.in +++ b/lib/awful/client.lua.in @@ -592,7 +592,7 @@ end --- Remove the floating information on a client. -- @param c The client. function floating.delete(c) - data.floating[c] = nil + floating.set(c, nil) end -- Normalize a set of numbers to 1 @@ -758,7 +758,7 @@ end -- This is garbage collection done on unmanage. -- @param c The client. local function killproperty(c) - data.property[c] = nil + data.properties[c] = nil end -- Register standards hooks