awesome/lib
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 Correct indentation of keyboardlayout.lua 2015-09-13 01:35:50 +09:00
beautiful Use awful.util.round in beautiful.xresources.apply_dpi 2015-08-12 14:18:57 +02:00
gears doc(lib: gears: surface): more verbose docstring 2015-09-07 20:29:57 +02:00
menubar menubar: fix height to be rounded 2015-08-31 20:47:22 +02:00
naughty Widgets: Also add a context argument to :fit() 2015-08-12 11:19:48 +02:00
wibox Explicitly track dependencies between widgets 2015-09-17 18:17:05 +02:00