awesome/lib/wibox
Uli Schlachter 41a8fabf4c Explicitly track dependencies between widgets
Before this, dependencies between widgets where implicitly discovered by
recursive calls to base.fit_widget() and base.layout_widget(). However, it is
too easy to get this wrong (just call one of these functions from outside of a
widget's :fit() / :layout() function) and the resulting mess would be hard to
debug.

Thus, this commit changes the API so that callers have to identify themselves
and we can explicitly record the dependency between the widgets involved.

This also fixes a bug where no dependencies were tracked for widgets after
:set_visible(false). Whoops...

Sorry for breaking the API for adding this.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-09-17 18:17:05 +02:00
..
layout Explicitly track dependencies between widgets 2015-09-17 18:17:05 +02:00
widget Explicitly track dependencies between widgets 2015-09-17 18:17:05 +02:00
drawable.lua wibox.drawable: Fix complete repaints 2015-09-15 12:49:20 +02:00
hierarchy.lua Explicitly track dependencies between widgets 2015-09-17 18:17:05 +02:00
init.lua Add a widget hierarchy implementation 2015-09-05 14:28:52 +02:00