Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!mintaka!spdcc!tauxersvilli!alphalpha!nazgul From: nazgul@alphalpha.com (Kee Hinckley) Newsgroups: comp.windows.x Subject: Re: OpenWindows button events question Message-ID: <1991Apr17.164858.9581@alphalpha.com> Date: 17 Apr 91 16:48:58 GMT References: <9104130056.AA08365@lightning.McRCIM.McGill.EDU> <9104162044.AA27125@trantor.Eng.Sun.COM> Organization: asi Lines: 42 In article <9104162044.AA27125@trantor.Eng.Sun.COM> Stuart.Marks@eng.sun.COM (Stuart Marks) writes: >No. The event sequence from the OpenWindows version 2 server is actually >incorrect, which adds to the confusion. The (buggy) event sequence is: > > LeaveNotify(mode=Grab) > ButtonPress > EnterNotify(mode=Grab) ... >It might not be necessary in this case. However, in general -- and in the >absence of a buggy server -- it is still sometimes necessary for clients to >pay attention to the information in the mode field. If the client is (for >example) painting a crosshair, it will probably want to disregard Enter and >Leave events generated by grabs. > >s'marks > >Stuart W. Marks ARPA: smarks@eng.sun.com >Windows & Graphics Software UUCP: sun!smarks >Sun Microsystems, Inc. I posted this here, and I've posted it to comp.windows.open-look. Let me try again. I believe that this problem is directly responsible for the misbehavior of my application under OW2.0. In particular I am getting *lots* of situations where button clicks are being delivered to the last item I clicked on rather than the item I just clicked on. This situation can be fatal to the user (click on a delete button, go somewhere else, click, and it deletes again). Is there anyway my application can work around this problem? Maybe by intercepting events and inserting some synthetic ones? Barring that. When will OW2.0 be fixed? -- Alfalfa Software, Inc. | Poste: The EMail for Unix nazgul@alfalfa.com | Send Anything... Anywhere 617/646-7703 (voice/fax) | info@alfalfa.com I'm not sure which upsets me more: that people are so unwilling to accept responsibility for their own actions, or that they are so eager to regulate everyone else's.