Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!sharkey!itivax!umich!zip!spencer From: spencer@eecs.umich.edu (Spencer W. Thomas) Newsgroups: comp.windows.x Subject: Re: A geometry question.. Message-ID: Date: 11 Sep 89 15:14:59 GMT References: <8038@potomac.ads.com> Sender: news@zippy.eecs.umich.edu Distribution: na Organization: University of Michigan EECS Dept Lines: 19 In-reply-to: adiseker@potomac.ads.com's message of 7 Sep 89 06:26:42 GMT 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)