Path: utzoo!attcan!uunet!husc6!bloom-beacon!EXPO.LCS.MIT.EDU!rws From: rws@EXPO.LCS.MIT.EDU (Bob Scheifler) Newsgroups: comp.windows.x Subject: Re: Unwanted Enter/Leave events during XGrabPointer Message-ID: <8811251525.AA18138@EXPO.LCS.MIT.EDU> Date: 25 Nov 88 15:25:09 GMT References: <495@island.uu.net> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 18 > My reading of the event mask passed to XGrabPointer says the Enter/Leave > events should be discarded; is there something I am missing here? But is it a bug? Yes, it is a bug. You've apparently missed something. XGrabPointer has an event mask which controls dispatch of subsequent pointer-related events to the grab window. The example provided did an XGrabPointer with owner_events set to False, meaning *only* this event mask should be obeyed. Since the mask didn't have Enter/Leave in it, the application should not have gotten those events. If, however, you set owner_events to True in the grab, then normal event dispatch for the client is attempted first, so "underlying" event masks can apply.