wibox.drawable: Force full repaint when the context changes
The previous commit made the hierarchy do a re-layout when the context changes. However, widgets could change their appearance depending on the context without changing their layout. Thus, the previous commit is not enough. This commit also makes the drawable redraw everything when the context changes. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
e0a3ecba01
commit
752d49ed47
|
@ -51,6 +51,9 @@ local function get_widget_context(self)
|
||||||
context[k] = v
|
context[k] = v
|
||||||
end
|
end
|
||||||
self._widget_context = context
|
self._widget_context = context
|
||||||
|
|
||||||
|
-- Give widgets a chance to react to the new context
|
||||||
|
self._need_complete_repaint = true
|
||||||
end
|
end
|
||||||
return context
|
return context
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue