From c319ffae2185c0c570163a6a74c71d56e116ecb1 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Wed, 8 Dec 2021 21:14:37 +0100 Subject: [PATCH] xsecurelock: when unable to refresh background, do nothing --- bin/xsecurelock-saver | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/xsecurelock-saver b/bin/xsecurelock-saver index 2cdb7d4..ac06c09 100755 --- a/bin/xsecurelock-saver +++ b/bin/xsecurelock-saver @@ -87,7 +87,7 @@ def on_background_change(monitor, f1, f2, event, ctx): try: new_background = GdkPixbuf.Pixbuf.new_from_file(ctx.background_image) except Exception: - pass + return ctx.background = new_background ctx.window.queue_draw()