Article View: comp.windows.x
Article #37119Re: xlock
From: Brett McCoy
Date: Wed, 21 Feb 1990 19:02
Date: Wed, 21 Feb 1990 19:02
34 lines
1970 bytes
1970 bytes
In article <JENS.90Feb21093455@ra.abo.fi> jens@ra.abo.fi (Jens Granlund DC) writes:
>I am running X11R4 on sun3s & sun4s running SunOS 4.0.3.
>
>When i try to run xlock i get the following error message.
>
>
>X Error of failed request: BadValue (integer parameter out of range for operation)
> Major opcode of failed request: 26 (X_GrabPointer)
> Minor opcode of failed request: 0
> Resource id in failed request: 0xffff
> Serial number of failed request: 29
> Current serial number in output stream: 29
>
>
>Does anyone know what this means and/or what to do to fix it.
X11R4 does not allow a -1 in the even mask which is what most people used
with X11R3 to mean all events. I'm not sure what the accepted fix for these
kinds of problems are, but all you need to do is change two lines in xlock.c
on the XGrabPointer calls changing the -1 to a 0. Following is what I changed
it to:
|
v
status = XGrabPointer(dsp, w, True, 0,
GrabModeAsync, GrabModeAsync, None, mycursor,
CurrentTime);
The 0 that is marked is a -1 in the original code. There are two occurances
of this call, so you can just do a search for XGrabPointer and change the
lines.
--
Brett McCoy | The amount you can learn in a given period of
brtmac@ksuvm.bitnet | time is inversely proportional to the time left
brtmac@maverick.ksu.ksu.edu | until you will be tested on said material.
Technical Details
Message-ID:
<25E2E5BF.197A@deimos.cis.ksu.edu>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!deimos!newsReferences:
<JENS.90Feb21093455@ra.abo.fi>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!deimos!news From: brtmac@wyatt.ksux.ksu.edu (Brett McCoy) Newsgroups: comp.windows.x Subject: Re: xlock Message-ID: <25E2E5BF.197A@deimos.cis.ksu.edu> Date: 21 Feb 90 19:02:22 GMT References: <JENS.90Feb21093455@ra.abo.fi> Sender: news@deimos.cis.ksu.edu (USENET News Admin) Distribution: comp.windows.x Organization: Kansas State University Lines: 34