diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-02-13 08:43:57 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2008-02-14 15:10:14 -0500 |
| commit | a2e3026d8a398a4d08c05610c3f652dd14fcdf45 (patch) | |
| tree | 9197009c942de6d3efb51af0f7c79c886f8ca781 /openbox/openbox.c | |
| parent | 35b36fc3771452cf980cb0a59aa05f3e2aa2aa67 (diff) | |
add a bunch of comments for images and image caches. and make the number of resized pictures saved in an image tunable per-icon cache.
Diffstat (limited to 'openbox/openbox.c')
| -rw-r--r-- | openbox/openbox.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/openbox/openbox.c b/openbox/openbox.c index f2dc7159..46da8fee 100644 --- a/openbox/openbox.c +++ b/openbox/openbox.c @@ -183,7 +183,11 @@ gint main(gint argc, gchar **argv) ob_rr_inst = RrInstanceNew(ob_display, ob_screen); if (ob_rr_inst == NULL) ob_exit_with_error(_("Failed to initialize the obrender library.")); - ob_rr_icons = RrImageCacheNew(); + /* Saving 3 resizes of an RrImage makes a lot of sense for icons, as there + are generally 3 icon sizes needed: the titlebar icon, the menu icon, + and the alt-tab icon + */ + ob_rr_icons = RrImageCacheNew(3); XSynchronize(ob_display, xsync); |
