Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!decwrl!wsl.dec.com!klee From: klee@wsl.dec.com (Ken Lee) Newsgroups: comp.windows.x Subject: Re: XSelectInput - what am I doing wrong? Message-ID: <2934@bacchus.dec.com> Date: 1 Mar 90 17:49:33 GMT References: <900227-154552-595@Xerox> Sender: news@decwrl.dec.com Reply-To: klee@decwrl.dec.com Organization: DEC Western Software Laboratory Lines: 14 In article <900227-154552-595@Xerox>, jalred.ElSegundo@XEROX.COM writes: > I have a widget for which I would like to receive VisibilityNotify events. > However, I seem to be unable to select those events. I retrieve the current > event mask of the window using XtBuildEventMask, OR in VisibilityChangeMask, > and then set the event mask using XSelectInput. Because of the heirarchy of windows in your typical widget, XSelectInput is unlikely to generate useful results. You should use XtAddEventHandler or the translation manager instead. Ken Lee DEC Western Software Laboratory, Palo Alto, Calif. Internet: klee@wsl.dec.com uucp: uunet!decwrl!klee