awesome/lib/wibox/layout
Uli Schlachter 3edd216560 wibox: Add widget geometry cache
This commit adds and uses wibox.layout.base.fit_widget(). This function is a
wrapper for widget:fit() that caches the result and thus speeds things up.

This is necessary because some layouts call :fit() from their :fit() and :draw()
functions. Nesting such layouts means that at the widget at the tail of the
stack gets its :fit() function called quite often. If this function is not
blazingly fast, this results in noticeable slowness.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2013-08-21 12:26:47 +02:00
..
align.lua.in wibox: Add widget geometry cache 2013-08-21 12:26:47 +02:00
base.lua.in wibox: Add widget geometry cache 2013-08-21 12:26:47 +02:00
constraint.lua.in wibox: Add widget geometry cache 2013-08-21 12:26:47 +02:00
fixed.lua.in wibox: Add widget geometry cache 2013-08-21 12:26:47 +02:00
flex.lua.in wibox: Add widget geometry cache 2013-08-21 12:26:47 +02:00
init.lua.in wibox.layout: add a new constraint layout 2013-01-05 23:05:30 +01:00
margin.lua.in wibox: Add widget geometry cache 2013-08-21 12:26:47 +02:00
mirror.lua.in wibox: Add widget geometry cache 2013-08-21 12:26:47 +02:00
rotate.lua.in wibox: Add widget geometry cache 2013-08-21 12:26:47 +02:00