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 <mceier@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Mariusz Ceier 2009-02-08 02:09:33 +01:00 committed by Julien Danjou
parent ef565076d7
commit be28925fb6
1 changed files with 2 additions and 2 deletions

View File

@ -592,7 +592,7 @@ end
--- Remove the floating information on a client. --- Remove the floating information on a client.
-- @param c The client. -- @param c The client.
function floating.delete(c) function floating.delete(c)
data.floating[c] = nil floating.set(c, nil)
end end
-- Normalize a set of numbers to 1 -- Normalize a set of numbers to 1
@ -758,7 +758,7 @@ end
-- This is garbage collection done on unmanage. -- This is garbage collection done on unmanage.
-- @param c The client. -- @param c The client.
local function killproperty(c) local function killproperty(c)
data.property[c] = nil data.properties[c] = nil
end end
-- Register standards hooks -- Register standards hooks