From 2088ca26e81552e208616461e63a052723b9848e Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Wed, 1 Jun 2016 14:21:23 -0400 Subject: [PATCH] tooltip: Support generic properties in constructor --- lib/awful/tooltip.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/awful/tooltip.lua b/lib/awful/tooltip.lua index 5baf217cb..136bdd951 100644 --- a/lib/awful/tooltip.lua +++ b/lib/awful/tooltip.lua @@ -598,6 +598,13 @@ function tooltip.new(args) end end + -- Apply the properties + for k, v in pairs(args) do + if tooltip["set_"..k] then + self[k] = v + end + end + return self end