Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!zaphod.mps.ohio-state.edu!usc!cs.utexas.edu!tut.cis.ohio-state.edu!pt.cs.cmu.edu!o.gp.cs.cmu.edu!cs.cmu.edu!dpm From: dpm@cs.cmu.edu (David Maynard) Newsgroups: comp.windows.x Subject: Re: DECWindows and Sample Server Compatibility Message-ID: <1990Jun5.191532.5384@cs.cmu.edu> Date: 5 Jun 90 19:15:32 GMT References: <12184@shlump.nac.dec.com> Sender: netnews@cs.cmu.edu (USENET News Group Software) Reply-To: dpm@cs.cmu.edu (David Maynard) Organization: Carnegie Mellon University, Pittsburgh, Pennsylvania Lines: 50 >Bad protocol >------------ >'dxcalendar' is the specific app (as Jim Gettys mentions) that we have seen >break the protocol. We have also seen it die trying to create zero width >windows (I think that was the case), but we are not able to easily duplicate >this, so it may not be a real problem. The following (unofficial, unsupported, undesireable, etc...) patch to the X11R4 sample server has allowed me to display dxcalendar on the Sun (Sun-2 and Sun-3, SunOS 3.5). Since the patch adds another clause to the "bug-compatibility mode" of the sample server it could potentially allow programs to do bad or damaging things. I don't think that would be a problem in most cases, but as always, "let the buyer beware." My server is only up to fixlevel 9 so the diff may change with more recent fixes. As always, be sure to save the unpatched version so that later official patches don't break. I don't recommend diverging from the MIT sources, but if you insist... --- Begin patch --- *** mit/server/dix/events.c.save Tue Jun 5 14:04:02 1990 --- mit/server/dix/events.c Tue Jun 5 14:05:56 1990 *************** *** 2921,2927 **** client->errorValue = stuff->event.u.u.type; return BadValue; } ! if (stuff->eventMask & ~AllEventMasks) { client->errorValue = stuff->eventMask; return BadValue; --- 2921,2927 ---- client->errorValue = stuff->event.u.u.type; return BadValue; } ! if ((stuff->eventMask & ~AllEventMasks) && !permitOldBugs) { client->errorValue = stuff->eventMask; return BadValue; --- End patch --- --- David P. Maynard (dpm@cs.cmu.edu) Dept. of Electrical and Computer Engineering Carnegie Mellon University, Pittsburgh, PA 15213 --- Any opinions expressed are mine. I haven't asked the ECE department or CMU what they think. ---