--- ray/src/px/x11image.c 1991/05/03 10:54:47 1.20 +++ ray/src/px/x11image.c 1991/05/03 13:28:39 1.22 @@ -248,6 +248,7 @@ init() /* get data and open window */ XSetFunction(thedisplay, revgc, GXinvert); XDefineCursor(thedisplay, wind, XCreateFontCursor(thedisplay, XC_diamond_cross)); + XStoreName(thedisplay, wind, fname == NULL ? progname : fname); if (geometry != NULL) { bzero((char *)&oursizhints, sizeof(oursizhints)); i = XParseGeometry(geometry, &oursizhints.x, &oursizhints.y, @@ -280,8 +281,6 @@ init() /* get data and open window */ |ButtonMotionMask|StructureNotifyMask |KeyPressMask|ExposureMask); XMapWindow(thedisplay, wind); - /* store name last as ready signal */ - XStoreName(thedisplay, wind, fname == NULL ? progname : fname); return; memerr: quiterr("out of memory");