[comp.windows.x] I can't get VisibilityNotify events

bjaspan@athena.mit.edu (Barr3y Jaspan) (03/10/90)

I have written an Xlib-based video game.  The event mask I pass to XSelectInput
contains VisibilityChangeMask.  As far as I can tell (from the Xlib doc), I
should get a VisibilityNotify event whenever ANY part of my window is
obscured (eg: when something else pops up over it).  Quite simply, it isn't
happening.

Random pieces of information:
o The program runs without protocol errors under R4 without bc mode.
o I am grabbing both the keyboard and the mouse.
o When I run the program under MWM, it seems that I get VisibilityNotify events
exactly when I do a "f.refresh".
o When I run the program without any window manager, I get a single
VisibilityNotify event when the window first pops up, and none thereafter.

Help?

Barry Jaspan, MIT-Project Athena
bjaspan@athena.mit.edu