HDTenEightyP/NetNews huggingface dataset:
From: adri@dutncp8.tn.tudelft.nl (A.B. van Woerkom)
Newsgroups: fj.mail-lists.x-window
Subject: Re: XFontStruct -> fontname
Date: 14 Aug 92 20:29:41 GMT
Distribution: fj
Organization: Delft University of Technology

Date: 14 Aug 92 11:04:49 GMT
Message-Id: <rlogin.713790289@dutncp8>
Newsgroups: comp.windows.x

poepping@uni-paderborn.de (Manfred Poepping) writes:


>___________________________________________________
>\						   \
> \                                                  \ 
>  \__________________________________________________\
>  |                                                  |
>\ |  How can I get the fontname from a XFontStruct ? |
> \|__________________________________________________|



>  I have a XFontStruct - and I would like to know the
>  fontname. Does anyone out there has any idea, how I 
>  could get the needed information from the XFontStruct ?


>  Thanks in advance

>  Manfred

You could try this:

	#include <X11/XAtom.h>
	XFontStruct	*font_struct;
	char		*name;

	if (XGetFontProperty( font_struct, XA_FONT_NAME, name))
		/* name found */
	else
		/* no FONT_NAME property */

but the font properties are not guaranteed to be present on any server ...

Adri.


--
A.B. van Woerkom, adri@dutncp8.tn.tudelft.nl
Delft University of Technology, Faculty of Applied Physics,
Vakgroep Fysische Informatica, section Computational Physics,
Lorentzweg 1, 2628 CJ  DELFT, The Netherlands
________________________________________________________________________
"Unfortunately, the current generation of mail programs do not have checkers
 to see if the sender knows what he is talking about" (A.S. Tanenbaum)
From: @logic.camp.clarkson.edu: matis!amir@omnigate.clarkson.edu (Amir Katz)
Newsgroups: fj.mail-lists.x-window
Subject: xcdplayer woes
Date: 21 Aug 92 14:18:16 GMT
Distribution: fj
Organization: SEE Technologies Ltd.

Message-Id: <9208160929.AA21592@simpson.turtles>
Date: Sun, 16 Aug 92 12:29:08 EET DST
Reply-To: @logic.camp.clarkson.edu:matis!matis.ingr.COM!amir@omnigate.clarkson.edu
X-Reply-To: amir@matis.ingr.COM
X-Mailer: ELM [version 2.3 PL11]

Xperts,
Has anyone succeeded in running xcdplayer successfully? IMHO, it's full of
bugs. For example, if no disk is inserted, it says:
   open: /dev/rsr0: No such device or address
instead of saying that no disk is inserted. Also, the clock is completely
screwed up, and many other things. 
For now, I'm using Sun's x_cdplayer (an XView application), but as a diehard
X11 supporter, I'd like to use pure X apps.

Any ideas?
-- 
/* ----------------------------------------------------------- */
/*  Amir J. Katz             |   amir@matis.ingr.COM           */
/*  System Specialist        |   Voice:  +972 52-584684        */
/*  SEE Technologies Ltd.    |   Fax:    +972 52-543917        */
/* ............ Solaris 2.0 - The Final Frontier ? ........... */
From: why@bnr.ca (Graeme Boyd)
Newsgroups: fj.mail-lists.x-window
Subject: Re: xterm -C
Date: 14 Aug 92 14:03:08 GMT
Distribution: fj
Organization: Bell Northern Research, Ottawa

Date: Fri, 14 Aug 1992 11:37:09 GMT
Message-Id: <1992Aug14.113709.27317@bcrka451.bnr.ca>
Newsgroups: comp.windows.x


> Maybe I'm crazy, but xterm -C (and finxterm, as well) doesn't seem to pay
> ANY attention to the ownership of /dev/console, despite what its man page
> says.  This is a REAL problem.  Anyone out there notice this? have a
> suggestion?  Anything?

I found the same thing in X11R5 (it worked ok in X11R4). My workaround
was to use "xconsole". Not as nice as having a "xterm" but ....
==========
Graeme Boyd                      B.N.R. Ltd
why@bnr.ca                       Ottawa, Canada
                   Perrussel's Law
There is no job so simple that it cannot be done wrong.
==========
My thoughs, My words -- Let BNR make its own mistakes.
From: @logic.camp.clarkson.edu: matis!amir@omnigate.clarkson.edu (Amir Katz)
Newsgroups: fj.mail-lists.x-window
Subject: xcdplayer woes
Date: 21 Aug 92 03:56:39 GMT
Distribution: fj
Organization: SEE Technologies Ltd.

Message-Id: <9208160929.AA21592@simpson.turtles>
Date: Sun, 16 Aug 92 12:29:08 EET DST
Reply-To: @logic.camp.clarkson.edu:matis!matis.ingr.COM!amir@omnigate.clarkson.edu
X-Reply-To: amir@matis.ingr.COM
X-Mailer: ELM [version 2.3 PL11]

Xperts,
Has anyone succeeded in running xcdplayer successfully? IMHO, it's full of
bugs. For example, if no disk is inserted, it says:
   open: /dev/rsr0: No such device or address
instead of saying that no disk is inserted. Also, the clock is completely
screwed up, and many other things. 
For now, I'm using Sun's x_cdplayer (an XView application), but as a diehard
X11 supporter, I'd like to use pure X apps.

Any ideas?
-- 
/* ----------------------------------------------------------- */
/*  Amir J. Katz             |   amir@matis.ingr.COM           */
/*  System Specialist        |   Voice:  +972 52-584684        */
/*  SEE Technologies Ltd.    |   Fax:    +972 52-543917        */
/* ............ Solaris 2.0 - The Final Frontier ? ........... */
From: unislc!jpb@bloom-beacon.mit.edu (John Bonn)
Newsgroups: fj.mail-lists.x-window
Subject: Using xmodmap to support kanji terminal
Date: 19 Aug 92 00:26:24 GMT
Distribution: fj
Organization: Unisys Corporation SLC

Date: 18 Aug 92 20:00:24 GMT
Message-Id: <1992Aug18.200024.11126@unislc.uucp>
Newsgroups: comp.windows.x

I've been trying to set up a kanji keyboard for use with
X using xmodmap.  The problem I'm having is that the mappings
aren't working as I expected.  For example, I made the following
change using xmodmap (keycode 10 = '1' key)
	keycode 10 = a b c d 
	(with modifier keys shift, cap-lock, and control unchanged)
When I pressed the '1' key in various modes I expected to get 
	1	=	a	i got:	a
	shift-1	=	b		b
	cap-lock-1 =	c		A
	cntl-1	=	d		a

I've tried this on two different servers with the same results.

Am I screwed up or is it the servers?  What I am eventually trying
to do is use the 'kanji' key on the japanese keyboard as one of
the modifier keys via xmodmap.

---------
bonn@free.cs.utah.edu   or   jpb@unislc.slc.unisys.com
From: srpxpert@godiva.ssw.com (Selene R. Platt)
Newsgroups: fj.mail-lists.x-window
Subject: Preserving current screen location of dialog shell when un/managed
Date: 20 Aug 92 05:23:11 GMT
Distribution: fj
Organization: Workstation Div., Supermicro Systems Group, Sony Corporation

Date: Wed, 19 Aug 1992 17:12:57 -0400
Message-Id: <9208192112.AA16871@godiva.ssw.com>


Hi xperts,

This seems to be a very simple question, but I can't figure out the answer.

I've created a Motif FormDialog (in UIL).  After it's displayed, I manually
move it to another location on the screen.  I obscure it with another
FormDialog popup (same application), and then want to raise the first
FormDialog to the top of the screen, but also maintain its current screen
coordinates.  Because this is not a main window, I have to unmanage and then
manage the dialog rather than use XMapRaised.  But rather than using the
current coords., the window manager puts the dialog back in its original
location (where it was created).  I've tried getting the dialog's x & y
resources prior to unmanaging it, and then setting them before re-managing it,
which doesn't work.  I've also tried getting the parent DialogShell widget ID
(by doing XtParent(FormDialog widget ID), but I'm not sure if this is really
the DialogShell widget ID) and setting ITS x/y to those values, which also 
doesn't work.

Does anyone know of a way to preserve the dialog's current screen coords.?
And before anyone suggests to raise the dialog in a different way to avoid it
being unmanaged, I should mention that this is the only way I've found to do
it - even after posting the question to XPERT months ago.

BTW, I'm running on a DG AViiON, UNIX 5.4.1, X11R4, Motif 1.1.1.

Thanx for your help!

Selene Platt

	{~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}
	{ Selene Platt                  (215) 651-5305           }
	{ Soft*Switch Inc.                                       }
	{ 640 Lee Rd.                   srp@godiva.ssw.com       }
	{ Wayne, PA  19087                                       }
	 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: ghawkins@unix1.tcd.ie ("George C. Hawkins")
Newsgroups: fj.mail-lists.x-window
Subject: is there a nicer Grip widget than the Athena one?
Date: 21 Aug 92 05:36:35 GMT
Distribution: fj
Organization: Trinity College, Dublin

Date: 17 Aug 92 21:34:07 GMT
Message-Id: <ghawkins.714087247@unix1.tcd.ie>
Newsgroups: comp.windows.x,comp.windows.x.motif


I am just looking for a nice Grip widget (handle for all you normal
people).  The one supplied in the Athena widget set is fairly
minimal. Is there any way for example to write a widget that can
move cleaning up after it and so avoid generating expose events
that get sent to the widget it's on top of (this is very iritating
with the Grip, it's tiny but as I move it about the DrawingArea
widget, I have below, a redraw routine has to be called for each
little tiny square it leaves behind, and I don't want to double
buffer my DrawingArea).

Thanks for your time, yours,


George.

--
george lives at:
___________________________________________________________________________
|   ghawkins@unix1.tcd.ie (mostly)  |   ghawkins@vax1.tcd.ie (sometimes)  |
---------------------------------------------------------------------------
From: sundar@fiber-one.ai.mit.edu (Sundar Narasimhan)
Newsgroups: fj.mail-lists.x-window
Subject: viewing a tiff file on an 8-bit display
Date: 15 Aug 92 00:13:57 GMT
Distribution: fj
Organization: MIT Artificial Intelligence Laboratory

Date: 14 Aug 92 18:01:50 GMT
Message-Id: <26607@life.ai.mit.edu>
Newsgroups: comp.windows.x

Hi, I'm trying to find out what the shortest way to view a tiff
file (as output by a program like RenderMan) on an 8-bit display is.

xtiff doesn't seem to handle this.

Is running tifftopnm and using xv/xloadimage the only answer?
Thanks.
From: feng@netcom.com (FengHeng Wu)
Newsgroups: fj.mail-lists.x-window
Subject: X Server for MS-Windows
Date: 21 Aug 92 13:51:03 GMT
Distribution: fj
Organization: Netcom - Online Communication Services  (408 241-9760 guest)
From: samborn@lynchpin.mtkgc.com (Kevin Samborn)
Newsgroups: fj.mail-lists.x-window
Subject: Re: Why is initial screen I/O so slow? (=NeWS!)
Date: 19 Aug 92 14:16:03 GMT
Distribution: fj
Organization: Workstation Div., Supermicro Systems Group, Sony Corporation

Date: Wed, 19 Aug 92 09:04:05 EDT
Message-Id: <9208191304.AA04388@lynchpin.mtkgc.com>
Newsgroups: comp.windows.x

/\/\ On Wed Aug 19 07:16:33 EDT 1992, Larry W. Virden said:


   Larry> And is there a way that I can convince NeWS to initialize
   Larry> the screen to a particular color from the first point it
   Larry> starts playing with the screen all the way to the point it
   Larry> turns things over to xinit?  That is, I would like the very
   Larry> first screen clear to be a clear to color #40a0c0 and it to
   Larry> stay that color all the way thru the login...

Sure-

Following is my actual .startup.ps.  Actually, there is a file called
$OPENWINHOME/etc/NeWS/paintroot.ps that has the postscript for
clearing the screen defined in it.  What the line "/InitPaintRoot { }
def" does is simply override the screen drawing routine to do nothing.
You can change that to anything you want.  Something like this might
do the trick (I have not tried it.  To be honest, it probably wont
work because colors have not been allocated.  However, this would be
my starting point:

   /InitPaintRoot {
       % allocate colors here!

       RootColor_ColorOrGray setcolor
       newpath clippath fill
   } def


%
% These routines change some definitions in the screen drawing in the
% beginning when OpenWindows starts up
%

shareddict /PaintRootDict get begin
    
   %
   % these lines override what is drawn in the background
   %
   /RootColor_ColorOrGray .371 .617 .625 rgbcolor def
   /banner (Sakura Global Capital) def
   /trademark () def
   /versionstring (OpenWindows Version ) openwinversion append def

   %
   % the following line deletes the banner from startup
   %
   %/InitPaintRoot { } def

end




--
kevin samborn
Sakura Global Capital
samborn@mtkgc.com
From: peyton@itd.nrl.navy.mil
Newsgroups: fj.mail-lists.x-window
Subject: WANTED: X-YACC
Date: 17 Aug 92 18:26:25 GMT
Distribution: fj
Organization: Workstation Div., Supermicro Systems Group, Sony Corporation

Message-Id: <9208171627.AA12075@itd.nrl.navy.mil>
Date: Mon, 17 Aug 92 12:27:01 -0400

I'm looking for a program that reads yacc input and displays the grammar
rules as a graph under OpenWindows.
From: MCOG@chvm1.vnet.ibm.com ("Michael A. Coggins")
Newsgroups: fj.mail-lists.x-window
Subject: Questions on DEC VMS DECterm configuration
Date: 20 Aug 92 12:08:42 GMT
Distribution: fj
Organization: Workstation Div., Supermicro Systems Group, Sony Corporation

Message-Id: <9208201138.AA05558@expo.lcs.mit.edu>
Date: Thu, 20 Aug 92 13:23:43 CET

I have the fluffy books describing the VMS DECterm, but it
spends a lot of time telling me how to work the mouse, and
to click on buttons.

What I really need to know is:

1) Which fonts does it use/require/want?  How would I find this info?
2) Can it use a resource file like a normal unix based xterm?
3) It seems to have hard-coded that <ctrl><backslash> will map to
   an X key sequence "Ctrl <Key> backslash", but the backslash on
   the keyboard I am working with has the backslash on a different
   modifier.  This means I have to type <ctrl><alt gr>backslash,
   and the DECterm doesn't recognize that this should be ctrl backslash.
   Can I reconfigure the DECterm to find my backslash?
4) Is there any detailed documentation on the DECterm in a VMS
   environment?

Any email help would be greatly appreciated, or a pointer to a better
place to look.  Please pardon my ignorance of VMS.  Thanks,
--
Mickey Coggins  mcog@chvm1.vnet.ibm.com
                +41-1-436-7274 or +41-1-436-8525 (fax)
                Hohlstrasse 560, CH-8048 Zurich, Switzerland
From: rws@expo.lcs.mit.edu (Bob Scheifler)
Newsgroups: fj.mail-lists.x-window
Subject: re: HP R5 X server
Date: 15 Aug 92 21:57:23 GMT
Distribution: fj
Organization: Workstation Div., Supermicro Systems Group, Sony Corporation

Message-Id: <9208152114.AA07026@explain.lcs.mit.edu>
Date: Sat, 15 Aug 92 17:14:53 EDT

You will get a faster X server, especially for text painting, by adding

#define AVOID_MEMORY_READ
#define FAST_CONSTANT_OFFSET_MODE
#define LARGE_INSTRUCTION_CACHE
#define PLENTIFUL_REGISTERS

inside the "#ifdef hpux" in server/include/servermd.h.
From: nwinton@axion.bt.co.uk (Neil Winton)
Newsgroups: fj.mail-lists.x-window
Subject: Re: Font problem in tk2.2 ?
Date: 13 Aug 92 13:08:43 GMT
Distribution: fj
Organization: BT Laboratories

Date: 13 Aug 92 10:35:11 GMT
Message-Id: <1992Aug13.103511.25813@axion.bt.co.uk>
Newsgroups: comp.lang.tcl,comp.unix.aix,comp.windows.x

(I'm cross-posting to comp.unix.aix and comp.windows.x in case any of the experts
there can shed any light on this)

In article <1992Aug11.200305.15968@rchland.ibm.com>, shmdgljd@rchland.vnet.ibm.com (Jay Schmidgall) writes:
|> I've noticed a font problem w/tk2.2 on a 6000 running AIX 3.2/x11r4.
|> Seems that the trailing portions of various letters are being truncated.
|> In particular, when I select Text:Display styles in the widget demo, the
|> word `large' has the rightmost edges of the `a', `g' and `e' truncated.
|> It almost looks like it is trying to fit the characters in the same amount
|> of space as the smaller font.  Unfortunately, this happens in other places
|> where the font size is all the same, such as Text:Command bindings; the
|> first sentence has various `m' and `s' characters truncated; again this
|> could be because those characters are bold.
|> 
|> Anyways, is this likely just a problem with my server, and has anyone else
|> seen this?

I've got this problem on AIX3.2/AIXwindows/tk2.2 as well.  I did post a report to
this group some time agao, but didn't see any response (although I may have
missed it).

It's a strange problem in that only some Tk widgets suffer from it -- for example
the menubuttons do, but the menus pulled down from them don't, even if using
exactly the same font!  Running Tk to a remote (non-AIX) display does not exhibit
the problem so I start to suspect the server ... but on the other hand nothing
other than Tk has ever produced this behaviour (tk2.1 did exactly the same). 
I've tried various things, including fiddling with graphics context values, but
the weird thing is that the calls to XDrawString that succeed and those that foul
up look identical ...

Oh, there is one more thing, not really related to this problem, but just to be
nit-picking.  It would be nice if the font names coded into Tk and the various
library files instead of being `*-times-*' or `*-helevetica-*' were specified as
`*-adobe-times-*' and `*-adobe-helvetica-*' and so on.  IBM deliver various
others (linotype-helvetica, urw-courier etc.) and these get picked up in
preference.

I really would like to use Tk on the RS/6000, it's a great package (thanks,
John!) but this font problem is really annoying ...

	Neil

*   Neil Winton			306, SSFT, BT Labs, Martlesham Heath    *
*   nwinton@axion.bt.co.uk	IPSWICH IP5, 7RE   (Tel +44 473 646079) *
*   The works of the Lord are great, sought out of all them that have   *
*   pleasure therein.					Psalm 111 v 2   *
*       (Found at the entrance to the Cavendish Labs, Cambridge.)       *
From: robert@triton.jpl.nasa.gov (Robert Angelino)
Newsgroups: fj.mail-lists.x-window
Subject: Is XmFileSelectionDoSearch() broken in VMS DecWindows (motif)????
Date: 13 Aug 92 01:36:49 GMT
Distribution: fj
Organization: Jet Propulsion Laboratory, Pasadena CA

Date: 12 Aug 92 16:24:27 GMT
Message-Id: <1992Aug12.162427.7952@mahendo.jpl.nasa.gov>
Newsgroups: comp.windows.x

hello,
	This function XmFileSelectionDoSearch() does not work in VMS
DecWindows motif version 1.0.  Has anyone experienced this problem and what
have you done to get around it????  I keep getting the following output:

X error event received from server:  BadWindow (invalid Window parameter)
Failed request major op code 2 (X_ChangeWindowAttributes)
ResourceID 0x0 in failed request (if applicable)
Serial number of failed request 1776
Current serial number in output stream 1817
%XLIB-E-ERROREVENT, error event received from server
%TRACE-E-TRACEBACK, symbolic stack dump follows
module name     routine name                     line       rel PC abs PC
							   000C65B4 000C65B4
							   000C6639 000C6639
							   000C7E7B 000C7E7B
							   000C5916 000C5916
							   000B30D4 000B30D4
							   00112618 00112618
							   00111B01 00111B01
TC_APP_SPA_TCLK main                             24986     000003E3 0000D007


thanks

-robert
From: ptjahjad@us.oracle.com (Paul Bintar Tjahjadi (Motif/X Toolkit II Development))
Newsgroups: fj.mail-lists.x-window
Subject: help with Xsi/Motif 1.2 Text widget on SunOS 4.1.1...
Date: 21 Aug 92 05:36:08 GMT
Distribution: fj
Organization: Oracle Corporation, Redwood Shores CA

Date: 20 Aug 92 16:25:24 GMT
Message-Id: <1992Aug20.162524.12407@oracle.us.oracle.com>
Newsgroups: comp.windows.x.motif,comp.windows.x

Hi,

I was wondering if anyone has been able to use the Xsi input method which can
be found in the MIT X11R5 contrib/im directory with Motif 1.2's Text widget on
a SPARCStation running SunOS 4.1.1?

I can use the input method with a simple X program, but Motif 1.2's Text widget
seems to need a more complete set of locale files which my SunOS 4.1.1 does not
seem to have (i.e. in my /usr/share/lib/locale/*, I can only find files for the
C locale).  Do I need SunOS's JLE in order to do Japanese text input?

Please e-mail your reply to PTjahjad@Oracle.Com.

Thank you...

paul
From: hermann@rz-berlin.mpg.de
Newsgroups: fj.mail-lists.x-window
Subject: PLEASE: Unsubscribe me
Date: 18 Aug 92 10:42:36 GMT
Distribution: fj
Organization: Workstation Div., Supermicro Systems Group, Sony Corporation

Date: Tue, 18 Aug 1992 08:37:49 +0100
Message-Id: <0095F459.F31B3140.21352@RZ-Berlin.MPG.DE>

Please unsubscribe me from this mailing-list.  Thank you.
========================================================================
 Prof.Dr. K. Hermann                             Tel.: (Ger)-30-8305-526
 Abt. Theorie, Fritz-Haber-Institut                    (Ger)-30-8305-522
 Faradayweg 4-6                                  Fax.: (Ger)-30-8305-531
 D-1000 Berlin 33
 Germany                                e-mail: hermann@RZ-Berlin.MPG.DE
========================================================================
From: sue@byron.u.washington.edu (Shu-Chen Eclipse)
Newsgroups: fj.mail-lists.x-window
Subject: Re: Hanging X11R4 server under AIX3.2.1
Date: 21 Aug 92 01:33:57 GMT
Distribution: fj
Organization: University of Washington, Seattle

Date: Thu, 20 Aug 1992 19:11:50 GMT
Message-Id: <1992Aug20.191150.13957@u.washington.edu>
Newsgroups: comp.unix.aix,comp.windows.x


Hellow,

how do I get my cursors and pointers to blink?
how do I change their sizes?

thanx for answering,
sue@byron.u.washington.edu
From: mccoy@gothamcity.jsc.nasa.gov (Daniel J. McCoy)
Newsgroups: fj.mail-lists.x-window
Subject: Re: X Windows on Non-UNIX systems
Date: 19 Aug 92 00:35:27 GMT
Distribution: fj
Organization: Loral Space Information Systems

Date: 18 Aug 92 15:50:33 GMT
Message-Id: <1992Aug18.155033.24834@aio.jsc.nasa.gov>
Newsgroups: comp.windows.x

In article 5700@osc.COM, george@osc.COM (George Baggott) writes:
|>
|>There are now a number of products which implement an X server for PCs
|>and Macs.  They allow you to run an X windows application on a UNIX
|>machine and display it on a PC or Mac.  Does anyone know of a product
|>which allows you to develop a PC or Mac based X *client*?  Such a
|>product would allow you to develop a PC or Mac based X windows application
|>which could be displayed on a UNIX machine, PC, or Mac running an
|>X server.
|>
|>Any info would be greatly appreciated.

I have heard of two for the Mac and one for the PC.  The Macs are:
	xport available from Qualix 1-800-245-UNIX, $495
	xgator ??? demo may be available by anonymous ftp
The one for the sun is sunpc

I have never use any of these and have no other info.

---
Daniel J. McCoy           |=| Loral Space Information Systems
NASA Mail Code PT4        |=| TEL: (713)483-0950
NASA/Johnson Space Center |=| FAX: (713)244-5698
Houston, Texas 77058      |=| mccoy@gothamcity.jsc.nasa.gov
From: aardvark@nt1l.krl.com (Donald Koch)
Newsgroups: fj.mail-lists.x-window
Subject: Re: XGrabPointer
Date: 19 Aug 92 08:38:31 GMT
Distribution: fj
Organization: Koch Research Labs

Date: Wed, 19 Aug 1992 02:26:38 GMT
Message-Id: <1992Aug18.222638@nt1l.krl.com>
Newsgroups: comp.windows.x

In article <9208180034.AA08091@mtesol>, sinan@Mtesol.boeing.COM (Sinan Karasu) writes:
> Not much more info can I give you, ( big program ) . Has anybody have an idea what
> this means ???
> 
> ------------------------------------------------------------------------------------
> 
> X Error of failed request:  BadValue (integer parameter out of range for operation)
>   Major opcode of failed request:  26 (X_GrabPointer)
>   Value in failed request:  0x8000
>   Serial number of failed request:  247
>   Current serial number in output stream:  247
> 

The possibilities are that you:
  passed a bad pointer mode (only GrabModeSync and GrabModeAsync allowed)
  passed a bad keyboard mode (ditto)
  passed a bad owner-events value (only True or False)
  passed a bad event mask (must have only PointerGrabMask set unless bc mode is on)

The actual value you passed was 0x8000.  You should be able to use xscope to
find the offending packet (if you can't find the problem by inspection or via
a debugger) and, therefore, which of the above fields was incorrect.

-- 
Don Koch
aardvark@krl.com