awesome/lib/wibox
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
..
layout wibox: Add widget geometry cache 2013-08-21 12:26:47 +02:00
widget wibox: Add widget geometry cache 2013-08-21 12:26:47 +02:00
drawable.lua.in Add support for "geometry" argument for mouse events and awful.button 2013-03-23 21:24:52 +01:00
init.lua.in wibox: Make the functions a little more object-y 2012-11-18 20:44:03 +01:00