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:
Uli Schlachter 2016-09-23 10:03:12 +02:00
parent e0a3ecba01
commit 752d49ed47
1 changed files with 3 additions and 0 deletions

View File

@ -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