home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / sgi / graphics / 43 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.1 KB  |  45 lines

  1. Path: sparky!uunet!olivea!sgigate!sgi!fido!holodeck.csd.sgi.com!aschaffe
  2. From: aschaffe@holodeck.csd.sgi.com (Allan Schaffer)
  3. Newsgroups: comp.sys.sgi.graphics
  4. Subject: Re: Window Manger Reporting of Iconified Windows
  5. Message-ID: <1gtepeINNdq6@fido.asd.sgi.com>
  6. Date: 18 Dec 92 21:11:10 GMT
  7. References: <7585@dove.nist.gov> <7587@dove.nist.gov>
  8. Organization: Silicon Graphics, Inc., Mountain View, CA
  9. Lines: 33
  10. NNTP-Posting-Host: holodeck.csd.sgi.com
  11.  
  12. fred@poly2.nist.gov (Frederick R. Phelan Jr.) said..
  13. >What device to you check for with qread to tell you a gl window has 
  14. >been stowed?  I tried REDRAWICONIC but that does not seem to be the
  15. >correct one.  Also, does it simply send a REDRAW when it is unstowed?
  16.  
  17. WINFREEZE and WINTHAW.
  18.  
  19. Granted, the comment in <gl/device.h> is cryptic.
  20.  
  21. #include <gl/gl.h>
  22. #include <gl/device.h>
  23.  
  24. void main()
  25. {
  26.     short dev, val;
  27.  
  28.     winopen ("test");
  29.     qdevice (WINFREEZE);
  30.     qdevice (WINTHAW);
  31.  
  32.     while (1)
  33.     {
  34.         dev = qread(&val);
  35.         if (dev==WINFREEZE) printf ("Got WINFREEZE (stow) event\n");
  36.         if (dev==WINTHAW) printf ("Got WINTHAW (open) event\n");
  37.     }
  38. }
  39.  
  40. Allan
  41. -- 
  42. Allan Schaffer
  43. aschaffe@sgi.com
  44. aschaffe@netcom.com
  45.