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:
parent
ef565076d7
commit
be28925fb6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue