Path: utzoo!news-server.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!magnus.ircc.ohio-state.edu!zaphod.mps.ohio-state.edu!think.com!snorkelwacker.mit.edu!bloom-beacon!dont-send-mail-to-path-lines From: mouse@lightning.mcrcim.mcgill.EDU (der Mouse) Newsgroups: comp.windows.x Subject: Re: window manager problem Message-ID: <9103090219.AA24301@lightning.McRCIM.McGill.EDU> Date: 9 Mar 91 02:19:58 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 38 > I have a program running on an IBM RS/6000 that I need to display on > a Sun. The program is apparently not compatible with the X11R4 > version of twm. When I display on the IBM (X11R3 and mwm) it works > fine. When I display on the Sun with no window manager it works > fine. But when I display on the Sun using X11R4 and twm the program > crashes with the following error message. > X Protocol error detected by server: BadAccess, attempt to access private resource denied > Failed request major op code 28 (X_GrabButton) > ResourceID 0x900020 in failed request From the protocol document, describing the GrabButton request: An Access error is generated if some other client has already issued a GrabButton request with the same button/key combination on the same window. When using AnyModifier or AnyButton, the request fails completely (no grabs are established), and an Access error is generated if there is a conflicting grab for any combination. Checking the MIT R4 source gives me the impression that this is the only way to get a BadAccess error. (As far as I can see the "ResourceID" in the error you got is pretty much meaningless.) So your program is trying to issue a grab that conflicts with twm, probably a grab on the root window. It strikes me as antisocial for any program except a window manager (or similar program) to set up a passive grab on the root; I would prefer to fix the guilty program. If it *is* supposed to set up such a grab, you will have to configure either it or twm to avoid doing the problematic grab - preferably, persuade it to grab some other button or with some other modifier combination. der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu