Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!umd5!cvl!elsie!ado
From: ado@elsie.UUCP (Arthur David Olson)
Newsgroups: comp.windows.x
Subject: Updating a background None window
Message-ID: <8104@elsie.UUCP>
Date: 30 Jun 88 18:40:46 GMT
Organization: NIH-LEC, Bethesda, MD
Lines: 27

For the sake of concreteness, compile the following code. . .

	#include "X11/Xlib.h"

	main()
	{
		Display *	display;
		Window		window;

		display = XOpenDisplay("");
		XSynchronize(display, 1);
		window = XCreateSimpleWindow(display, RootWindow(display, 0),
			0, 0, 100, 100, 5, 1, 0);
		XSetWindowBackgroundPixmap(display, window, None);
		XMapWindow(display, window);
		for ( ; ; ) {
			XUnmapWindow(display, window);
			XMapWindow(display, window);
			(void) sleep(5);
		}
	}

. . .then run it under your favorite window manager and move the window.

The question on the floor:  is there a better way than Unmapping and reMapping
to get a transparent window's background corrected after it has been moved?
-- 
	ado@ncifcrf.gov			ADO is a trademark of Ampex.