add: Window dummy; int foo;  if (wScreenCount>1 && XQueryPointer(dpy, event->xkey.root, &dummy, &dummy, &foo, &foo, &foo, &foo, &foo)==False) {  return True; }
context: wRootMenuPerformShortcut(XEvent *event){    Shortcut *ptr;    int modifiers;    int done = 0;        /* ignore CapsLock */    modifiers = event->xkey.state & ValidModMask;        for (ptr = shortcutList; ptr!=NULL; ptr = ptr->next) {	if (ptr->keycode==0) 	    continue;		if (ptr->keycode==event->xkey.keycode && (ptr->modifier==modifiers)) {	    (*ptr->entry->callback)(ptr->menu, ptr->entry);	    done = True;	}    }    return done;}