Path: utzoo!mnetor!uunet!husc6!mit-eddie!apollo!oj From: oj@apollo.uucp (Ellis Oliver Jones) Newsgroups: comp.windows.x Subject: Re: Copying a Pixmap into a Window? Help? Message-ID: <3bd6e91b.d5b2@apollo.uucp> Date: 4 May 88 00:42:00 GMT References: <5658@spool.cs.wisc.edu> Reply-To: oj@canyon.UUCP (Ellis Oliver Jones) Organization: Apollo Computer, Chelmsford, MA Lines: 16 Keywords: XCopyArea In article <5658@spool.cs.wisc.edu> dave@romano.cs.wisc.edu (Dave Cohrs) writes: ... >A simple program that opens a window, reads a bitmap from >an X11 format bitmap file, with XReadBitmapFile(), and XCopyArea()s >that bitmap into the window, which just happens to be the same >size as the bitmap. It all works fine up to the XCopyArea(), which >seems to do nothing (i.e. The window remains the background color >no matter what I do). Don't do the XCopyArea until you get an Expose event. Most window managers intercept each XMapWindow request (via SubstructureRedirectMask) and spend some time figuring out what to do before reissuing the request. The upshot is that you probably drew into an unmapped window. /Ollie Jones