[comp.windows.x] window manager problem

merike@alw.nih.gov (Merike Kaeo) (03/08/91)

A friend is posting this for me since I don't have access to a news
server. Please respond via email to "shaffer@achilles.ctd.anl.gov".

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)
  Failed request minor op code 0
  ResourceID 0x900020 in failed request
  Serial number of failed request 484
  Current serial number in output stream 489

Using bug compatibility mode does no good. My question...does anyone
know where I can (at reasonable or no cost) get a window manager that
might work? Like mwm or an old twm. Are there any public domain
window managers that I could try? Is there another way to fix this
problem.

                                mike
                shaffer@achilles.ctd.anl.gov

mouse@lightning.mcrcim.mcgill.EDU (der Mouse) (03/09/91)

> 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