unknown window



I'm using the following code to catch substructure events off the root
window:

	rootwin = gdk_window_foreign_new(GDK_ROOT_WINDOW());
	gdk_window_add_filter(rootwin, rootwin_filter, tv);
	XSelectInput(GDK_DISPLAY(), GDK_ROOT_WINDOW(), SubstructureNotifyMask);

It yields me the following error when I minimize a window:

Gdk-Message: Got event for unknown window: 0x4c0001c

The window number of course changes depending on what was minimized.
Under certain conditions I was getting BadWindow instead and crashing my
program. I've fixed that, but I'm left with the above. How can I get rid
of these errors?

--
Harold



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]