From 23613bac0548acdab7adc9a3469abc8bd32d3eda Mon Sep 17 00:00:00 2001 From: actionless Date: Fri, 1 Sep 2017 22:43:07 +0200 Subject: [PATCH] fix(awful: widget: calendar_popup): hover was not working anymore if hiding popup by clicking on it --- lib/awful/widget/calendar_popup.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/awful/widget/calendar_popup.lua b/lib/awful/widget/calendar_popup.lua index e204b10a6..7115eccc1 100644 --- a/lib/awful/widget/calendar_popup.lua +++ b/lib/awful/widget/calendar_popup.lua @@ -332,8 +332,14 @@ local function get_cal_wibox(caltype, args) ret:set_widget(widget) ret:buttons(gears.table.join( - abutton({ }, 1, function () ret.visible=false end), - abutton({ }, 3, function () ret.visible=false end), + abutton({ }, 1, function () + ret.visible=false + ret._calendar_clicked=false + end), + abutton({ }, 3, function () + ret.visible=false + ret._calendar_clicked=false + end), abutton({ }, 4, function () ret:call_calendar(-1) end), abutton({ }, 5, function () ret:call_calendar( 1) end) ))