🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sgi.graphics
Article #65

Re: Window Manger Reporting of Iconified Windows

#65
From: Allan Schaffer
Date: Fri, 18 Dec 1992 21:11
33 lines
1197 bytes
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
Technical Details
Message-ID: <1gtepeINNdq6@fido.asd.sgi.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!sgigate!sgi!fido!holodeck.csd.sgi.com!aschaffe
References: <7585@dove.nist.gov> <7587@dove.nist.gov>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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