awesome/spec
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
..
awful Add new file spec/awful/keyboardlayout_spec.lua 2015-09-13 01:19:00 +09:00
gears Add gears.matrix for working with cairo matrices 2015-08-12 10:38:22 +02:00
wibox Explicitly track dependencies between widgets 2015-09-17 18:17:05 +02:00
preload.lua Fix sporadic test failure due to lgi 2015-07-29 21:31:47 +02:00