From 527bbfa0e0e504cffcaec547e68878cd2d809e7b Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sat, 11 Apr 2009 14:07:45 +0200 Subject: [PATCH] awful.titlebar: remove otable usage Signed-off-by: Julien Danjou --- lib/awful/titlebar.lua.in | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/awful/titlebar.lua.in b/lib/awful/titlebar.lua.in index d795f726c..bf6e4ac30 100644 --- a/lib/awful/titlebar.lua.in +++ b/lib/awful/titlebar.lua.in @@ -8,7 +8,7 @@ local math = math local image = image local pairs = pairs -local otable = require("otable") +local setmetatable = setmetatable local capi = { wibox = wibox, @@ -27,7 +27,7 @@ local client = require("awful.client") module("awful.titlebar") -- Privata data -local data = otable() +local data = setmetatable({}, { __mode = 'k' }) -- Predeclaration for buttons local button_groups @@ -387,6 +387,5 @@ button_groups = { ontop_buttons, hooks.focus.register(update) hooks.unfocus.register(update) hooks.property.register(update) -hooks.unmanage.register(remove) -- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80