Forcing XFree86 to ungrab the mouse

Hi,

I’ve noticed some posts here about XFree86’s failure to ungrab the mouse
if an app compiled without the SDL parachute crashes. I just noticed
the following in the XFree86 man page that might be useful:

   Ctrl+Alt+KeypadMultiply
           Not treated specially by default.  If the AllowClose-
           downGrabs  XF86Config-4(5x) file option is specified,
           this key sequence kills clients with an  active  key-
           board  or  mouse grab as well as killing any applica-
           tion that may have locked the server, normally  using
           the XGrabServer(3x) Xlib function.

   Ctrl+Alt+KeypadDivide
           Not  treated specially by default.  If the AllowDeac-
           tivateGrabs XF86Config-4(5x) file  option  is  speci-
           fied,  this  key sequence deactivates any active key-
           board and mouse grabs.-- 

Ryan Underwood,
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20040614/c19eeff2/attachment.pgp

In short, its a bug in XFree86. It should watch if the connection that
mouse grabbed fails, and then ungrab. The (absurd) fix is to start an
app that mouse grabs, and then quite again; this forces XFree86 to
ungrab.On 14-Jun-2004, Ryan Underwood wrote:

Hi,

I’ve noticed some posts here about XFree86’s failure to ungrab the mouse
if an app compiled without the SDL parachute crashes. I just noticed
the following in the XFree86 man page that might be useful:

   Ctrl+Alt+KeypadMultiply
           Not treated specially by default.  If the AllowClose-
           downGrabs  XF86Config-4(5x) file option is specified,
           this key sequence kills clients with an  active  key-
           board  or  mouse grab as well as killing any applica-
           tion that may have locked the server, normally  using
           the XGrabServer(3x) Xlib function.

   Ctrl+Alt+KeypadDivide
           Not  treated specially by default.  If the AllowDeac-
           tivateGrabs XF86Config-4(5x) file  option  is  speci-
           fied,  this  key sequence deactivates any active key-
           board and mouse grabs.


Ryan Underwood,


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


Patrick “Diablo-D3” McFarland || unknown at panax.com
"Computer games don’t affect kids; I mean if Pac-Man affected us as kids, we’d
all be running around in darkened rooms, munching magic pills and listening to
repetitive electronic music." – Kristian Wilson, Nintendo, Inc, 1989
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20040614/070b5a98/attachment.pgp