Path: utzoo!utgpu!watserv1!watmath!att!rutgers!usc!snorkelwacker!bloom-beacon!ti-csl.csc.ti.COM!ekberg From: ekberg@ti-csl.csc.ti.COM Newsgroups: comp.windows.x Subject: twm intercepting XDraw...? > I've created a single window, created a GC for it, and called > XDrawRectangle. If the window attribute override_redirect is set to > true, the window appears and the rectangle is drawn. > > If override_redirect is set Message-ID: <9007101307.AA13650@osage.csc.ti.com> Date: 10 Jul 90 13:07:02 GMT References: Sender: ekberg@osage.csc.ti.com Organization: The Internet Lines: 10 This looks like the common problem one encounters when running X. If one tries to draw something after the window is created and mapped, it most likely will get thrown away. The correct thing to do is, after the mapwindow request, to wait for the expose event from the server. It is only after the initial expose event that drawing can be done. This probably explains why you are not seeing the rectangle being drawn. If you single-step it in the debugger, it will probably work since the expose event will be sent before you perform the drawing operation. -- tom (aisle C-4Q), ekberg@csc.ti.com