home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!sgigate!sgi!fido!holodeck.csd.sgi.com!aschaffe
- From: aschaffe@holodeck.csd.sgi.com (Allan Schaffer)
- Newsgroups: comp.sys.sgi.graphics
- Subject: Re: Window Manger Reporting of Iconified Windows
- Message-ID: <1gtepeINNdq6@fido.asd.sgi.com>
- Date: 18 Dec 92 21:11:10 GMT
- References: <7585@dove.nist.gov> <7587@dove.nist.gov>
- Organization: Silicon Graphics, Inc., Mountain View, CA
- Lines: 33
- NNTP-Posting-Host: holodeck.csd.sgi.com
-
- fred@poly2.nist.gov (Frederick R. Phelan Jr.) said..
- >What device to you check for with qread to tell you a gl window has
- >been stowed? I tried REDRAWICONIC but that does not seem to be the
- >correct one. Also, does it simply send a REDRAW when it is unstowed?
-
- WINFREEZE and WINTHAW.
-
- Granted, the comment in <gl/device.h> is cryptic.
-
- #include <gl/gl.h>
- #include <gl/device.h>
-
- void main()
- {
- short dev, val;
-
- winopen ("test");
- qdevice (WINFREEZE);
- qdevice (WINTHAW);
-
- while (1)
- {
- dev = qread(&val);
- if (dev==WINFREEZE) printf ("Got WINFREEZE (stow) event\n");
- if (dev==WINTHAW) printf ("Got WINTHAW (open) event\n");
- }
- }
-
- Allan
- --
- Allan Schaffer
- aschaffe@sgi.com
- aschaffe@netcom.com
-