From c36a869ded311bdd7c8d6fbd52e952df87cf0b93 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Tue, 26 Oct 2021 13:31:33 -0700 Subject: [PATCH] textbox: Store the font in `_private`. So a getter can work. --- lib/wibox/widget/textbox.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/wibox/widget/textbox.lua b/lib/wibox/widget/textbox.lua index 26f6ea2f0..b48bf6843 100644 --- a/lib/wibox/widget/textbox.lua +++ b/lib/wibox/widget/textbox.lua @@ -338,6 +338,10 @@ end -- @propbeautiful function textbox:set_font(font) + if font == self._private.font then return end + + self._private.font = font + self._private.layout:set_font_description(beautiful.get_font(font)) self:emit_signal("widget::redraw_needed") self:emit_signal("widget::layout_changed")