projects
/
mikachu
/
openbox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add a bunch of comments for images and image caches. and make the number of resized...
[mikachu/openbox.git]
/
openbox
/
openbox.c
diff --git
a/openbox/openbox.c
b/openbox/openbox.c
index
f2dc715
..
46da8fe
100644
(file)
--- 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_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);
XSynchronize(ob_display, xsync);