From ebe55b56f922b42eeb76ccee7238183aa5ab41b8 Mon Sep 17 00:00:00 2001 From: Nooo37 <70270606+Nooo37@users.noreply.github.com> Date: Mon, 9 Aug 2021 18:37:07 +0200 Subject: [PATCH] fix #86 (#87) --- widget/task_preview.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/widget/task_preview.lua b/widget/task_preview.lua index e56ecff..f49d9c3 100644 --- a/widget/task_preview.lua +++ b/widget/task_preview.lua @@ -15,6 +15,7 @@ local cairo = require("lgi").cairo local function draw_widget(c, task_preview_box, screen_radius, widget_bg, widget_border_color, widget_border_width, margin) + if not pcall(function () return type(c.content) end) then return end local content = gears.surface(c.content) local cr = cairo.Context(content) local x, y, w, h = cr:clip_extents()