naughty: resize naughtifications to the minimum needed space
commita4de60b23f632220cff8b6ca7f71eda893a192f5
authorGregor Best <farhaven@googlemail.com>
Tue, 5 May 2009 18:38:15 +0000 (5 20:38 +0200)
committerJulien Danjou <julien@danjou.info>
Thu, 4 Jun 2009 15:23:34 +0000 (4 17:23 +0200)
treee939878676b2b09839998e147ec1babc37ebb290
parent0f2da4b9bf38bd9ee48f6f36ec0c11d1df422918
naughty: resize naughtifications to the minimum needed space

This commits adds support for :extents() to naughty. It changes the
behaviour of naughty.config.presets.*.width so that if it's set to nil,
the notification gets resized automagically. Else the value of width is
used for the notification's width.
The meaning of naughty.config.presets.*.height changed similarly, now,
if set, it means the literal height of the notifications. If unset, the
notification gets resized automagically as well.

Signed-off-by: Gregor Best <farhaven@googlemail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
lib/naughty.lua.in