home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!munnari.oz.au!manuel.anu.edu.au!rschp1.anu.edu.au!hugh
- From: hugh@rschp1.anu.edu.au (Hugh Fisher)
- Newsgroups: comp.windows.x
- Subject: How to tell if display is idle?
- Date: 20 Nov 1992 04:37:41 GMT
- Organization: Research School of Chemistry, ANU
- Lines: 13
- Distribution: world
- Message-ID: <1ehq2lINNmcb@manuel.anu.edu.au>
- NNTP-Posting-Host: 150.203.35.20
-
-
- I want to modify a program which checks for idle terminals
- to handle X displays as well. There are Xlib functions
- and protocol requests to set or retrieve the screen saver
- time out values, but there doesn't seem to be any way to
- check if the screen saver is currently active.
-
- The program will run on Unix machines with mostly X11R4.
- The best I can think of is getting the pointer motion buffer
- for the last n seconds and seeing if it is empty or not. Can
- anyone suggest a better way?
-
- Hugh Fisher
-