Path: utzoo!attcan!uunet!lll-winken!ncis.llnl.gov!helios.ee.lbl.gov!pasteur!ucbvax!bloom-beacon!EXPO.LCS.MIT.EDU!rws From: rws@EXPO.LCS.MIT.EDU (Bob Scheifler) Newsgroups: comp.windows.x Subject: Re: simple Xlib question Message-ID: <8901301253.AA01957@EXPIRE.LCS.MIT.EDU> Date: 30 Jan 89 12:53:47 GMT References: <49087@yale-celray.yale.UUCP> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 10 My program is doing XSelectInput(.,.,KeyPressMask) on several windows of my display. It receives KeyPress events for any kind of window except xterm windows I suspect you'll get similar behaviour for most Xt clients that accept keyboard input. The "problem" is that xterm (and other clients) have subwindows that have KeyPress selected for (but typically not KeyRelease), and they get "first dibs" at the event. Go back to the Xlib or Protocol doc and read about the window hierarchy and device event propagation.