From de6d9334d89bff3bc05eff07868155566d89051d Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 17 Jan 2016 17:38:52 +0100 Subject: [PATCH] wibox.drawable: Handle gears.surface's new error handling Signed-off-by: Uli Schlachter --- lib/wibox/drawable.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/wibox/drawable.lua b/lib/wibox/drawable.lua index 80f6728cb..0e6fb0208 100644 --- a/lib/wibox/drawable.lua +++ b/lib/wibox/drawable.lua @@ -64,7 +64,7 @@ local function get_widget_context(self) end local function do_redraw(self) - local surf = surface(self.drawable.surface) + local surf = surface.load_silently(self.drawable.surface, false) -- The surface can be nil if the drawable's parent was already finalized if not surf then return end local cr = cairo.Context(surf) @@ -113,7 +113,7 @@ local function do_redraw(self) if not capi.awesome.composite_manager_running then -- This is pseudo-transparency: We draw the wallpaper in the background if not wallpaper then - wallpaper = surface(capi.root.wallpaper()) + wallpaper = surface.load_silently(capi.root.wallpaper(), false) end if wallpaper then cr.operator = cairo.Operator.SOURCE