🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #37907

I can't get VisibilityNotify events

#37907
From: Barr3y Jaspan
Date: Fri, 09 Mar 1990 23:06
18 lines
1283 bytes
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
Technical Details
Message-ID: <1990Mar9.230619.15106@athena.mit.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!bloom-beacon!athena.mit.edu!bjaspan

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!bloom-beacon!athena.mit.edu!bjaspan
From: bjaspan@athena.mit.edu (Barr3y Jaspan)
Newsgroups: comp.windows.x
Subject: I can't get VisibilityNotify events
Message-ID: <1990Mar9.230619.15106@athena.mit.edu>
Date: 9 Mar 90 23:06:19 GMT
Sender: news@athena.mit.edu (News system)
Reply-To: bjaspan@athena.mit.edu (Barr3y Jaspan)
Organization: Massachusetts Institute of Technology
Lines: 18