From 1ece7c35b7b119ebb1c1bef33d5c04507ff2f117 Mon Sep 17 00:00:00 2001 From: Luke Bonham Date: Fri, 10 Mar 2017 20:48:11 +0100 Subject: [PATCH 1/1] calendar: mouse.current_widgets safety check --- widget/calendar.lua | 2 +- wiki | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/widget/calendar.lua b/widget/calendar.lua index 789676d..99e8817 100644 --- a/widget/calendar.lua +++ b/widget/calendar.lua @@ -67,7 +67,7 @@ function calendar.show(t_out, inc_offset, scr) local widget_focused = true - if t_out == 0 then + if t_out == 0 and mouse.current_widgets then widget_focused = false for i, widget in ipairs(calendar.attach_to) do for _,v in ipairs(mouse.current_widgets) do diff --git a/wiki b/wiki index bbf5c5b..2257b0a 160000 --- a/wiki +++ b/wiki @@ -1 +1 @@ -Subproject commit bbf5c5b15c676aa5b44caff56593bdffc4f8eca2 +Subproject commit 2257b0a452c6dbcc3ec16b4e85e47c1779f05f16 -- 2.39.5