home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / windows / x / 19372 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  891 b 

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