X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=openbox%2Fopenbox.c;h=46da8fee4f8dc7ee7eaf273303f99bee09b5f6ce;hb=e7a86f5fe47906ef845af83fc419dc540cf19daf;hp=f2dc7159e60d9d7bf88f1df61433baca27abc93d;hpb=4c7cc1cfa64bf5722f059eae0528d510c2ae636f;p=chaz%2Fopenbox 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);