From owner-freebsd-questions@FreeBSD.ORG Tue Oct 14 02:22:35 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9450216A4B3 for ; Tue, 14 Oct 2003 02:22:35 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE42043FAF for ; Tue, 14 Oct 2003 02:22:33 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) h9E9MQQK072740 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 14 Oct 2003 10:22:27 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id h9E9MPPg072739; Tue, 14 Oct 2003 10:22:25 +0100 (BST) (envelope-from matthew) Date: Tue, 14 Oct 2003 10:22:25 +0100 From: Matthew Seaman To: Gerald S Stoller Message-ID: <20031014092225.GB69957@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Gerald S Stoller , freebsd-questions@freebsd.org, gs_stoller@hotmail.com References: <20031014.000347.-336087.0.GS_Stoller@juno.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="61jdw2sOBCFtR2d/" Content-Disposition: inline In-Reply-To: <20031014.000347.-336087.0.GS_Stoller@juno.com> User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.60 X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on happy-idiot-talk.infracaninophile.co.uk cc: gs_stoller@hotmail.com cc: freebsd-questions@freebsd.org Subject: Re: WINDOWID X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Oct 2003 09:22:35 -0000 --61jdw2sOBCFtR2d/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 14, 2003 at 12:03:47AM -0400, Gerald S Stoller wrote: > FreeBSD 4.3-RELEASE FreeBSD 4.3-RELEASE #0: Sat Apr 21 10:54:49 GMT 2001 > jkh@narf.osd.bsdi.com:/usr/src/sys/compile/GENERIC i386 >=20 > I run XFree86 on my system. Each process has an environment > variable named WINDOWID . What purpose does this variable serve? How > is it used? What can I do with it ((redirect output to another window, > no! for that I can use /dev/tty )? I noticed (by converting several > values to hex) that the form of this variable is > 2 * y * 16^5 + 14 , and I never saw y > 22 ; this is a result of > looking at around a dozen values. Actually, that's set for all of the child processes of any xterm(1) windows you may use. It seems to be an xterm(1) specific thing to set in the environment, but then I haven't actually checked any of the xterm-alike programs. As far as I know, it's not used for anything much from the shell. The WINDOWID value itself just reports the Window id value known to the X server -- all X windows on the server will have a unique ID number which is used within the server to make sure that X events and window updates and so forth get directed to the right place. Use xwininfo(1) to display that, and other, data about any windows on your display. xwininfo(1) returns the window id value in hex, and it does have the same sort of pattern for all windows as you mention. It looks like some sort of bitmap to me, probably to tell the X server what the capabilities of the window are, but I can't find the appropriate man page that describes that. Try using xwininfo(1) against the root window, icons and so forth. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --61jdw2sOBCFtR2d/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/i8BRdtESqEQa7a0RAj3MAJ44FSsGwaD27TAojv2MZHb8AgG1/wCffrlz yIjKhnzBLz53T92WPCAqnyA= =79/T -----END PGP SIGNATURE----- --61jdw2sOBCFtR2d/--