At 1241549129 time_t, Gregor Best wrote:
> I finally found some time to hack around awesome again, so here i present a
> backport of :extents() from the widget-layouts branch to the master branch and
> a little addition to naughty which makes it behave much more friendly to 
> screen
> space by automagically resizing naughtyfications so they take exactly as much
> space as they need.
> 
> The first patch export a function called :extents() for each widget which 
> takes
> a screen number as its argument. This is only used for systrays to correctly
> calculate their geometries, for all other widgets it is ignored. If it's
> omitted for a systray, 1 is assumed. It returns the geometry the widget wants
> to be drawn at, which doesn't take later resizing into account (i.e. if you
> have a square 64x64 imagebox with resize enabled on a wibox with 16 px
> height, :extents().height will still be 64 although the widget is actually
> drawn 16 pixels high).
> 
> The second patch adds support for resizing to naughty. See the commit message
> for additional details on how it works.

Good work Gregor, thank you very very much.

I'm glad to announce this 2 patches are inaugurating the next branch,
for 3.4. :-)

Cheers,
-- 
Julien Danjou
// ᐰ <[email protected]>   http://julien.danjou.info
// 9A0D 5FD9 EB42 22F6 8974  C95C A462 B51E C2FE E5CD
// Don't give up.

Attachment: signature.asc
Description: Digital signature

Reply via email to