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:
parent
1c733e5b16
commit
aeaec445ee
1 changed files with 8 additions and 0 deletions
|
@ -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();
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue