Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!ucbvax!bloom-beacon!EXPO.LCS.MIT.EDU!rws From: rws@EXPO.LCS.MIT.EDU (Bob Scheifler) Newsgroups: comp.windows.x Subject: Re: Grab puzzler Message-ID: <8912140103.AA27020@expire.lcs.mit.edu> Date: 14 Dec 89 01:03:26 GMT References: <2838586831-1909703@RIGI> Sender: root@athena.mit.edu (Wizard A. Root) Organization: The Internet Lines: 15 The event masks of both B and M have previously been set to select for EnterWindow. For a grab with owner-events False, what matters is the event-mask used in the GrabButton call, not the normal event-mask of the window. Does that mask have enter/leave selected for? Therefore, when the user moves the pointer (with the pointer button still pressed) off B and onto M, an EnterWindow event should be reported to B, i.e. as a result of entering M. Hmm, nope. You'll get a Leave event when you leave B, but enter/leave events on other windows aren't forwarded to B. The protocol document probably isn't very clear on this point.