ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvttoolkit.C
(Generate patch)

Comparing rxvt-unicode/src/rxvttoolkit.C (file contents):
Revision 1.113 by sf-exg, Fri Jan 14 11:09:54 2011 UTC vs.
Revision 1.114 by root, Thu Jan 27 02:03:30 2011 UTC

312 * get resources using the X library function 312 * get resources using the X library function
313 */ 313 */
314 char *displayResource, *xe; 314 char *displayResource, *xe;
315 XrmDatabase rdb1, database = 0; 315 XrmDatabase rdb1, database = 0;
316 316
317#if !XLIB_ILLEGAL_ACCESS
318 /* work around a bug in XrmSetDatabase where it frees the db, see ref_next */
319 database = XrmGetStringDatabase ("");
320#endif
321
317 // for ordering, see for example http://www.faqs.org/faqs/Xt-FAQ/ Subject: 20 322 // for ordering, see for example http://www.faqs.org/faqs/Xt-FAQ/ Subject: 20
318 // as opposed to "standard practise", we always read in ~/.Xdefaults 323 // as opposed to "standard practise", we always read in ~/.Xdefaults
319 324
320 // 6. System wide per application default file. 325 // 6. System wide per application default file.
321 326
488rxvt_display::ref_next () 493rxvt_display::ref_next ()
489{ 494{
490 // TODO: somehow check whether the database files/resources changed 495 // TODO: somehow check whether the database files/resources changed
491 // before affording re-loading/parsing 496 // before affording re-loading/parsing
492 XrmDestroyDatabase (XrmGetDatabase (dpy)); 497 XrmDestroyDatabase (XrmGetDatabase (dpy));
498#if XLIB_ILLEGAL_ACCESS
499 /* work around a bug in XrmSetDatabase where it frees the db */
500 dpy->db = 0;
501#endif
493 XrmSetDatabase (dpy, get_resources (true)); 502 XrmSetDatabase (dpy, get_resources (true));
494} 503}
495 504
496rxvt_display::~rxvt_display () 505rxvt_display::~rxvt_display ()
497{ 506{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines