home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / windows / x / 20756 < prev    next >
Encoding:
Text File  |  1993-01-05  |  1.0 KB  |  28 lines

  1. Newsgroups: comp.windows.x
  2. Path: sparky!uunet!ods!chris
  3. From: chris@ods.com (Chris Atkins)
  4. Subject: Re: alternating window images - flicker in Xlib
  5. Message-ID: <1993Jan5.150923.3335@ods.com>
  6. Organization: Optical Data Systems, Inc.
  7. X-Newsreader: TIN [version 1.1 PL8]
  8. References: <1993Jan4.180304.5399@xn.ll.mit.edu>
  9. Date: Tue, 5 Jan 1993 15:09:23 GMT
  10. Lines: 16
  11.  
  12. rkc@xn.ll.mit.edu wrote:
  13.  
  14. :     I have an C, Xlib based program with a main loop built around
  15. : XNextEvent, and I want to periodically flicker the screen.  I have early
  16. : copies of the O'Reilly books for Xlib, but I cannot figure out a good way to
  17. : periodically send/receive an event that says "change screen now".  The
  18. : peridicity is on the order of 6 times per second.  Can someone send me a code
  19. : snippet, or point me to the correct routine?  Thanks for your help.
  20.  
  21.  
  22. If you are using Xt, use a timer proc. Look in O'Reilly Volume 4, X Toolkit
  23. Intrinsics Programming Manual for an example and discusion of using timer procs.in the chapter on More Input Techniques.
  24.  
  25. Chris Atkins
  26. chris@ods.com
  27.  
  28.