]> Dogcows Code - chaz/openbox/blobdiff - openbox/openbox.c
add a bunch of comments for images and image caches. and make the number of resized...
[chaz/openbox] / openbox / openbox.c
index ec6cc44c11214e6c274fbdbd14956d99d27cba15..f7d820e0111a5a834003df2fadc2c821fa3c7b96 100644 (file)
@@ -168,7 +168,11 @@ gint main(gint argc, gchar **argv)
     ob_rr_inst = RrInstanceNew(obt_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(obt_display, xsync);
 
This page took 0.022321 seconds and 4 git commands to generate.