Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uwm.edu!linac!att!ucbvax!bloom-beacon!dont-send-mail-to-path-lines From: doug@genmri.UUCP (Doug Becker) Newsgroups: comp.windows.x Subject: Re: XGrabPointer Problems Message-ID: <9105030135.AA26868@genmri.sane.COM> Date: 3 May 91 01:35:32 GMT References: <9105021959.AA21939@bru.mayo.EDU> Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 25 status = XGrabPointer(dsp, w, True, KeyPressMask | ButtonPressMask, GrabModeAsync, GrabModeAsync, None, mycursor, CurrentTime); It is not legal to pass KeyPressMask as part of the event mask to XGrabPointer. See Xlib, sections 7.4 and 8.1. Now: if app runs on panterra & displays on panterra:0 this works. You probably have bug compatibility mode set on panterra (i.e. via 'xset bc'). In a related aside, is it possible to use XListHosts(), XRemoveHosts() and XAddHosts() in a similar fashion? XListHosts should work just fine. XRemoveHost[s] and XAddHost[s] require that the server be on the same host as the client process. -- Doug Becker doug@nmri.ge.com crdgw1!sane!doug