Path: utzoo!utgpu!watserv1!watmath!att!att!linac!uwm.edu!wuarchive!bcm!etaylor From: etaylor@wilkins.iaims.bcm.tmc.edu (Eric Taylor) Newsgroups: comp.windows.x Subject: Re: Moving window Message-ID: <2920@gazette.bcm.tmc.edu> Date: 28 Nov 90 16:28:36 GMT References: <1990Nov28.054112.7758@metro.ucc.su.OZ.AU> Sender: usenet@bcm.tmc.edu Reply-To: etaylor@wilkins.iaims.bcm.tmc.edu (Eric Taylor) Organization: Baylor College of Medicine, Houston, Tx Lines: 28 Nntp-Posting-Host: wilkins.iaims.bcm.tmc.edu Additional notes: If you really MUST place a shell window, use the XtNgeometry resource for the app shell. If you use the XtNx and XtNy resources on the shell window, it might work for some window managers. If you really must use XMoveWindow, you can do so only after the shell window is realized. Your code sequence might look something like this : XtRealizeWidget(topapp); XMoveWindow(XtDisplay(topapp), XtWindow(topapp), 20, 2); Secondly, you are confusing DefaultRootWindow with your own shell window. The DefaultRootWindow exists at all times even when your program is not active. You can think of it as the background window. -- Eric Taylor Baylor College of Medicine etaylor@wilkins.bmc.tmc.edu (713) 798-3776