Path: utzoo!attcan!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!bloom-beacon!LARRY.MCRCIM.MCGILL.EDU!mouse From: mouse@LARRY.MCRCIM.MCGILL.EDU (der Mouse) Newsgroups: comp.windows.x Subject: Re: X11R3: PointerMotionMask misbehaving Message-ID: <8904062248.AA28729@Larry.McRCIM.McGill.EDU> Date: 6 Apr 89 22:48:01 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 25 >> [using grabs] >> The problem is, I never see a MotionNotify event. > I took a look at the code you sent me, and discovered that you're > calling XGrabPointer with a confine-to window that has never been > mapped. That's a no-no, and causes the grab to fail. XGrabPointer > returns status GrabNotViewable, which you decided not to check (shame > on you). Since the grab fails, it's attempt to ask for motion events > also fails. You got code in an interim state, I realize upon looking back. Mapping the confine-to window did make the problem disappear - both problems: the XGrabPointer works, and the MotionNotify events start coming in. As I recall, the same was true (ie, I wasn't seeing MotionNotify events) before I started explicitly calling XGrabPointer at all, which leaves the question of why this was happening when the passive grab included PointerMotionMask in its event mask.... I'll write a test program and see if I can get the behaviour I think I got before. I'll report back here when I've done this. der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu