--- ray/src/px/x11image.c 1994/06/10 12:51:21 2.37 +++ ray/src/px/x11image.c 1994/11/21 09:18:48 2.39 @@ -214,10 +214,6 @@ char *argv[]; init(argc, argv); /* get file and open window */ - if (parent < 0) { - kill(getppid(), SIGCONT); /* signal parent if child */ - sigrecv--; - } for ( ; ; ) getevent(); /* main loop */ userr: @@ -276,7 +272,7 @@ char **argv; if (gamstr == NULL) /* get it from the X server */ gamstr = XGetDefault(thedisplay, "radiance", "gamma"); if (gamstr == NULL) /* get it from the environment */ - gamstr = getenv("GAMMA"); + gamstr = getenv("DISPLAY_GAMMA"); if (gamstr != NULL) gamcor = atof(gamstr); /* get best visual for default screen */ @@ -353,7 +349,6 @@ char **argv; XSetWMProtocols(thedisplay, wind, &closedownAtom, 1); XMapWindow(thedisplay, wind); - return; } /* end of init */ @@ -562,6 +557,10 @@ getevent() /* process the next event */ map_rcolors(ourras, wind); if (fast) make_rpixmap(ourras, wind); + if (parent < 0 & sigrecv == 0) { /* notify parent */ + kill(getppid(), SIGCONT); + sigrecv--; + } break; case UnmapNotify: if (!fast)