1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

DtSvc/DtUtil1/Saver.c - fix the screen savers.

I have no idea how their putenv code can work.  Anyway, use code that
works on linux now. :)
This commit is contained in:
Jon Trulson 2012-07-12 15:14:51 -06:00
parent 1c733e5b16
commit aeaec445ee

View file

@ -167,8 +167,11 @@ _DtSaverStart(
*/
if (saver_list.serial == 0)
{
#if !defined(linux) && !defined(CSRG_BASED)
/* JET - how can this ever work anyway? */
putenv(envdata);
envdata[0] = '\0';
#endif
xa_saver_register = XInternAtom(display, "_DT_SAVER_REGISTER", False);
}
@ -210,6 +213,11 @@ _DtSaverStart(
char *pe = envdata + strlen(envdata);
sprintf(pe, " %lx", XtWindow(drawArea[i]));
}
#if defined(linux) || defined(CSRG_BASED)
putenv(envdata);
#endif
_DtSvcProcessUnlock();
/*