Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!sgi!daisy!klee From: klee@daisy.UUCP (Ken Lee) Newsgroups: comp.windows.x Subject: Re: How to Pause After XCreateWindow? Message-ID: <2832@daisy.UUCP> Date: 15 Mar 89 17:53:42 GMT References: <4188@alvin.mcnc.org> Reply-To: klee@daisy.UUCP (Ken Lee) Distribution: usa Organization: Daisy Systems Corp., Mountain View, Ca. Lines: 14 In article <4188@alvin.mcnc.org> pickel@mcnc.org (Lisa C. Pickel) writes: >The problem is that I call XCreateWindow, but it doesn't pause. My >application speeds right along, eventually calling XGetWindowAttributes >BEFORE I've placed and sized the new window. Try waiting (XNextEvent) for a MapNotify event (StructureNotifyMask). That will tell you when you're mapped. You should probably also wait for ConfigureNotify events, since your window manager might change your window attributes at any time. Ken Lee -- klee@daisy.uucp Daisy Systems Corp., Interactive Graphics Tools Dept.