xsecurelock: when unable to refresh background, do nothing

This commit is contained in:
Vincent Bernat 2021-12-08 21:14:37 +01:00
parent e54d253f6c
commit c319ffae21

View file

@ -87,7 +87,7 @@ def on_background_change(monitor, f1, f2, event, ctx):
try: try:
new_background = GdkPixbuf.Pixbuf.new_from_file(ctx.background_image) new_background = GdkPixbuf.Pixbuf.new_from_file(ctx.background_image)
except Exception: except Exception:
pass return
ctx.background = new_background ctx.background = new_background
ctx.window.queue_draw() ctx.window.queue_draw()