Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Xserver bug on Digital UNIX 4.0?
@ 1998-04-21  4:00 Marcus Sundberg
  0 siblings, 0 replies; only message in thread
From: Marcus Sundberg @ 1998-04-21  4:00 UTC (permalink / raw)



This little prog will cause the X-server load to go up to 100%
when mytimeout is 0:

#include <X11/Xlib.h>
#include <X11/Xutil.h>
int
main()
{
        Display *dsp;
        int timeout, interval, prefer_blanking,allow_exposures;
        int mytimeout = 0;
        if ((dsp = XOpenDisplay(NULL)) != NULL) {
		XGetScreenSaver( dsp, &timeout, &interval,
                                &prefer_blanking, &allow_exposures );
		XSetScreenSaver( dsp, mytimeout, interval, prefer_blanking,
		                allow_exposures );
		XCloseDisplay(dsp);
		return 0;
	}
	return 1;
}

Any ideas why this happens?
(Running Digital Unix on a Digital ALPHAStation 255)

//Marcus
-- 
-------------------------------+------------------------------------
        Marcus Sundberg        | WWW: http://www.e.kth.se/~e94_msu/
 Royal Institute of Technology |       Phone: +46 707 295404
       Stockholm, Sweden       |      E-Mail: e94_msu@e.kth.se



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-04-21  4:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-04-21  4:00 Xserver bug on Digital UNIX 4.0? Marcus Sundberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox