From: rvloon@cv.ruu.nl (Ronald van Loon)
Subject: Re: Xgopher 1.2 w/OW2 problem + solution
Originator: rvloon@triton.cv.ruu.nl
Date: Mon, 14 Dec 1992 10:20:04 GMT
Organization: University of Utrecht, 3D Computer Vision Research Group

In <1992Dec12.014902.6096@eng.ufl.edu> ruck@zeta.ee.ufl.edu (John R Ruckstuhl Jr) writes:

|"I posted:
|"
|">Sun's OpenWindows 2 xnews, with bundled OW2 olwm, and I get:
|">  X Error of failed request:  BadAlloc (insufficient resources for operation)
|">  Major opcode of failed request:  1 (X_CreateWindow)
|">  Serial number of failed request:  182
|">  Current serial number in output stream:  186
|"
|"The solution appears in the comments in the conf.h file for the 1.1a release,
|"but was omitted for the 1.2 release.
|"I had set 
|"#define SERVER_MAX_WINDOW_WIDTH         65535
|"#define SERVER_MAX_WINDOW_HEIGHT        65535
|"when building xgopher 1.2.
|"
|"From xgopher 1.2 conf.h:
|"
|"/*       Each server allows a maximum window size.  It is not clear that
|"         the server can be queried to obtain this maximum value.  Most
|"         servers allow 65535 x 65535  (width, height).  However, some HP
|"         servers, for example, allow only 8192 x 8192.  The following
|"         constants define this maximum.  It is used to create an overlay
|"         window for the stopwatch cursor during time-consuming operations.
|"
|"         If you use a virtual root window (e.g., with tvtwm) larger than
|"         about 8k square, then you should make these values larger.
|"*/

You can also apply this:

pply the following patch after which xgopher will work on all servers,
  provided they don't run a virtual window manager (it will work, but the
  busy wait cursor might not show up when xgopher's window is very large.)

- 8< cut here 8< -

diff -c xgopher.1.1/conf.h xgopher.hp.1.1/conf.hxgopher.1.1/panel.c xgopher.hp.1
.1/panel.c
*** xgopher.1.1/panel.c Mon Apr 27 17:05:18 1992
--- xgopher.hp.1.1/panel.c      Mon Aug 24 10:04:48 1992
***************
*** 368,375 ****
                waitWindow =
                        XCreateWindow(dpy, XtWindow(topLevel),
                                0, 0,
!                               (unsigned int) SERVER_MAX_WINDOW_WIDTH,
!                               (unsigned int) SERVER_MAX_WINDOW_HEIGHT,
                                (unsigned int) 0,
                                CopyFromParent, InputOnly, CopyFromParent,
                                valuemask, &attributes);
--- 368,375 ----
                waitWindow =
                        XCreateWindow(dpy, XtWindow(topLevel),
                                0, 0,
!                               (unsigned int) WidthOfScreen(XtScreen(topLevel))
,
!                               (unsigned int) HeightOfScreen(XtScreen(topLevel)
),
                                (unsigned int) 0,
                                CopyFromParent, InputOnly, CopyFromParent,
                                valuemask, &attributes);

-- 
Ronald van Loon     | Consider this: In the United States, an automobile is
(rvloon@cv.ruu.nl)  | stolen EVERY 14.7 SECONDS. 
3DCV Group, Utrecht |   If that statistic scares you, think how we felt when we 
The Netherlands     | made it up. - Dave Barry, "CHRISTMAS BUYERS GUIDE"