From e66120913f7085d9cc0443c3731b10f37ff6e3a3 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Sat, 10 Sep 2016 23:54:45 -0400 Subject: [PATCH] screen: Fix a memory leak. Found while investigating #1079 --- lib/awful/screen.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/awful/screen.lua b/lib/awful/screen.lua index 4029895b..ab179bb6 100644 --- a/lib/awful/screen.lua +++ b/lib/awful/screen.lua @@ -30,7 +30,7 @@ local screen = {object={}} local data = {} data.padding = {} -screen.mouse_per_screen = {} +screen.mouse_per_screen = setmetatable({}, {__mode="k"}) --- Take an input geometry and substract/add a delta -- @tparam table geo A geometry (width, height, x, y) table