I just spotted that F11 is grabbed by IceWM too.

  Perhaps the easiest approach might be to switch the default
 to F12 or so?

  I guess that changing the code isn't too useful as we still don't
 see *which* program is already grabbing the key, but the following
 patch does give an error message:

Steve
--

--- skippy.c-orig       2005-04-01 11:39:23.217799616 +0100
+++ skippy.c    2005-04-01 11:41:21.802771960 +0100
@@ -222,6 +222,7 @@
        const char *tmp, *homedir;
        char cfgpath[8192];
        Bool invertShift = False;
+       int grabret;
 
        if(! dpy) {
                fprintf(stderr, "FATAL: Couldn't connect to
display.\n");
@@ -285,7 +286,13 @@
        XSelectInput(mw->dpy, mw->root, PropertyChangeMask);
 
        keycode = XKeysymToKeycode(mw->dpy, keysym);
-       XGrabKey(mw->dpy, keycode, AnyModifier, mw->root, False,
        GrabModeAsync,
 GrabModeAsync);
+       grabret = XGrabKey(mw->dpy, keycode, AnyModifier, mw->root,
False, Grab
ModeAsync, GrabModeAsync);
+
+       if ( grabret == 1 )
+       {
+         printf("Keygrab failed - perhaps the key is grabbed by another
applic
aion?\n");
+         exit( -1 );
+       }
        while(! DIE_NOW)
        {
                XEvent ev;



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to