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: help with XGrabPointer Message-ID: <8812231400.AA17852@EXPO.LCS.MIT.EDU> Date: 23 Dec 88 14:00:48 GMT References: <8812230057.AA17851@hpfclp.sde.hp.com> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 29 First, if the user happens to select my application (the one that issued the active grab), then my grab is lost when a menu is posted. If you mean the user selects a menu in your application, then given the menu fragment you show below, it seems to follow that you will lose your grab. I assume this means in this case the passive grab got executed (I don't know why) and it attempts to do an XUngrabPointer followed by an XGrabPointer. The passive grab should not get executed (if it does there's a server bug), but the menu code probably can't tell a passive grab got activated, it just assumes a button press caused a grab, and does an Ungrab, which releases the grab you had, since it's being executed in your process. This leaves me SOL since I no longer have any way of redirecting the events to this special mode. Yup. This implies that the passive grab was always being executed. Nope, I don't think so. What I really want is something that would change the mouse sprite when this mode is entered, but only grab release events. I can't think of any way for you to get this behavior.