Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!ide!bob!michels From: michels@bob.uucp (Alan Michels) Newsgroups: comp.windows.x Subject: Re: xterm with Sun Open Windows 1.0 Keywords: Sun NeWS xterm Message-ID: <369@ide.UUCP> Date: 21 Mar 90 17:50:07 GMT References: <8490@cg-atla.agfa.com> Sender: usenet@ide.COM Reply-To: michels@bob.UUCP (Alan Michels) Followup-To: comp.windows.x Distribution: comp Organization: IDE, San Francisco Lines: 46 In article <8490@cg-atla.agfa.com> felleman@cg-atla.agfa.com (John Felleman) writes: >We have just begun using some of the X11 features of our X11/NeWS >server (OPEN WINDOWS 1.0), and are having some birthing pains. >When we try to run xterm from a System V client, the server returns >the following error: > >X Protocol error detected by server: integer parameter out of range > Failed request major op code 2 X_ChangeWindowAttributes > Failed request minor op code 0 (if applicable) > ResourceID 0x40001a in failed request (if applicable) > Serial number of failed request 72 > Current serial number in output stream 77 > >Can anyone explain what is going on? What, if anything, can we >do to fix the problem? I just had this explained to me by someone at Sony. (The Sony server also does this.) The problem is not in the server but in xterm: +The problem is that xterms in releases up to X11R4 had a +bug in them. The bug is that they call XGrabPointer with an +even mask that has values set that shouldn't be (xlock, FrameMaker, +and a few others do this as well). + +The Sony X11R3 server has a lot of X11R4 "fixes" in it, and this +includes the code that checks for these "out of range" values. + +The solution is to assume that the Sony server is as tight as the +R4 server is, and tell the server to be "backwards compatible". +To do this, create the file ~/.xserverrc, make it executable, and +put the lines + + #!/bin/sh + exec /usr/bin/X11/Xnews bc + +in it (note: no - before the bc). After you restart the server, +things will work fine. The solution on X11R4 is to run xset bc. I don't know what the solution is on X11/NeWS or on HP-UX 7.0. Anybody out there know what to do? Alan Michels michels@ide.com ..!uunet!ide!michels IDE - Interactive Development Environments 595 Market St, 12th floor San Francisco, CA 94105