Newsgroups: comp.windows.x Path: utzoo!utgpu!watserv1!watcgl!mimperatore From: mimperatore@watcgl.waterloo.edu (Marco Imperatore) Subject: Re: Invisible foreground Message-ID: <1990Jun8.002651.14002@watcgl.waterloo.edu> Keywords: Background is visible, not foreground Organization: University of Waterloo References: <2687@ektools.UUCP> Date: Fri, 8 Jun 90 00:26:51 GMT Lines: 20 In article <2687@ektools.UUCP> Joanne writes: >I have been struggling with an annoying problem in getting anything in >my windows to display with X. I am writing an application program which >writes objects to a pixmap. I then attempt an XCopyArea from the pixmap >to the window, followed by a MapRaised of the window. It seems that >only the background is visible. I cannot get the foreground visible at >all. I had similar problems when I was first learning X (not that I know it now!!). I think the problem is that you must FIRST map the window and THEN try to display objects on it. Furthermore, I think it is a sound idea (if not entirely necessary) to wait for the Expose event associated with the mapping of the window before proceeding to draw anything. -cheers -- Marco Imperatore Computer Graphics Lab, University of Waterloo, Waterloo, Ontario, Canada cdn: mimperatore@cgl.waterloo uucp: mimperatore@watcgl