beautiful: Use weak references for tracking fonts
commitd436b2845c8779c4935085f206b6b1dd1e5d0af3
authorUli Schlachter <psychon@znc.in>
Thu, 14 Apr 2011 20:40:56 +0000 (14 22:40 +0200)
committerUli Schlachter <psychon@znc.in>
Thu, 14 Apr 2011 20:40:56 +0000 (14 22:40 +0200)
treef7e724f106496cef913336588ea4d1a01f801bb1
parentb530da1861e91ff8cb52471b3e9c75b3e06c5afc
beautiful: Use weak references for tracking fonts

There is no point in keeping this font cache alive for longer than needed.
Letting lua garbage-collect fonts should provide sane cache-behavior in that we
forgot about the font once no one uses it anymore.

Signed-off-by: Uli Schlachter <psychon@znc.in>
lib/beautiful.lua.in