[comp.windows.x] querying window size

ken@gatech.edu (Ken Seefried iii) (12/05/87)

--

In Suntools, there is a command sequence that can be sent to a window and 
it will return its size.

Does such a command sequence exsist in X?

______________________________________________________________________________
Kenneth J. Seefried iii			|	Internet:	ken@gatech.edu
P.O. Box 30104				|	Bitnet:		ccastks@gitvm1
School of Information & Computer Science|	uucp:
Georgia Tech, Atlanta GA 30332		|	...!{backbone site}!gatech!ken
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

swick@ATHENA.MIT.EDU (Ralph R. Swick) (12/11/87)

If you are running an application inside an xterm window, you can use the
same trick that 'resize' uses; send the ANSI escape sequence to save the
cursor position, then move the cursor to row 999, column 999 and read the
cursor position, then send the restore cursor position sequence.

If you're not running inside an xterm, your question has little meaning;
XGetGeometry will return the size of any window, but from your point
of view it's a procedure call, not a command sequence.