--- xcb/xcb.c 2002/10/10 12:22:32 1.2 +++ xcb/xcb.c 2004/01/28 21:17:32 1.3 @@ -1167,6 +1167,13 @@ XtGetApplicationResources (top, &ares, res, XtNumber (res), 0, 0); nbuffs = max (ares.nbuffs, 1); + xa_compound_text = XInternAtom (dpy, "COMPOUND_TEXT", False); + xa_utf8_string = XInternAtom (dpy, "UTF8_STRING", False); + xa_text = XInternAtom (dpy, "TEXT", False); + + if (!xa_utf8_string) + xa_utf8_string = xa_compound_text; + /* search for the -u and -v switches first */ for (p = argv + 1; p < argv + argc; p++) { @@ -1284,13 +1291,6 @@ XSetWMProtocols (dpy, XtWindow (top), &delwin, 1); XtAddEventHandler (top, 0, True, wmdel, (XtPointer) 0); - xa_compound_text = XInternAtom (dpy, "COMPOUND_TEXT", False); - xa_utf8_string = XInternAtom (dpy, "UTF8_STRING", False); - xa_text = XInternAtom (dpy, "TEXT", False); - - if (!xa_utf8_string) - xa_utf8_string = xa_compound_text; - initialize_properties (); }