From ee001ce2f0cbc01d6eeaebde50467482af7b578a Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 6 Sep 2015 13:18:59 +0200 Subject: [PATCH] imagebox: Don't emit signals if same image is set again Signed-off-by: Uli Schlachter --- lib/wibox/widget/imagebox.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/wibox/widget/imagebox.lua b/lib/wibox/widget/imagebox.lua index 8d38f1b1c..34d46335e 100644 --- a/lib/wibox/widget/imagebox.lua +++ b/lib/wibox/widget/imagebox.lua @@ -95,6 +95,10 @@ function imagebox:set_image(image) end end + if self._image == image then + return + end + self._image = image self:emit_signal("widget::redraw_needed")