[comp.windows.x] A geometry question..

adiseker@potomac.ads.com (Andrew Diseker) (09/07/89)

   Ok, this is the scam:

      Last year I spent several months using X10, and I had no trouble
   using the XMapWindow call to place a child of RootWindow at the
   x/y location specified on creation.  Now, in X11, no matter what
   I specify when I create the window, I get the flickering rubberband
   rectangle, wanting my to place the window.  What I need to know, ( and 
   this is embarassing for someone with X experience to ask ) is: how do I
   get a window to use its geometry, when it's a child of RootWindow?
   Is it a matter of .Xdefaults? Some other resource? RTFM?

   Please e-mail me the answer, even if it's no-way.  I'm using X11R3, 
   with Purdue speedups and some patches ( Sysadmin knows what those are ).

           Ochyen spaceeba!
           ( thanks, for those who nee panimayitye pa-russky! )






Andrew Diseker			UUCP: sun!sundc!potomac!adiseker
Advanced Decision Systems	Internet:  adiseker@potomac.ads.com


-- 

Andrew Diseker			UUCP: sun!sundc!potomac!adiseker
Advanced Decision Systems	Internet:  adiseker@potomac.ads.com

spencer@eecs.umich.edu (Spencer W. Thomas) (09/11/89)

In article <8038@potomac.ads.com> adiseker@potomac.ads.com (Andrew Diseker) writes:

>    ... Now, in X11, no matter what
>    I specify when I create the window, I get the flickering rubberband
>    rectangle, wanting my to place the window.  What I need to know, ...
>    is: how do I
>    get a window to use its geometry, when it's a child of RootWindow?

It is possible.  If you are using the toolkit, the easiest thing to do
is to set the XtNgeometry specification for the shell to the size and
position you want.  When using bare Xlib, (it's been a while, so this
may not be quite right), you set up an XSizeHints structure with the
size and position you want, and set the USSize|USPosition bits, so
that the window manager believes it.  Then you call XSetWMHints.  You
need to do this after you create the window and before you map it.

=Spencer (spencer@eecs.umich.edu)
--
=Spencer (spencer@eecs.umich.edu)