Hello, I have a problem that someone here might have a solution to. I want to make a passive grab, like this:

XGrabKey(display, 100, ControlMask | Mod1Mask, root, False,
GrabModeAsync, GrabModeAsync);

The only problem is that I have no way of ignoring certain modifiers. For example, I do not care at all whether Num Lock or Caps Lock are switched on, but if either of them are, the grab will not be activated when I press Ctrl + Alt + Left (keycode 100).

Is there a way to choose which modifiers to ignore that I might have missed?

I could perhaps grab with AnyModifier and put the events back into the event stream if they do not have interesting modifier bits set - since I want other key combinations reported as normal Key events.

Any ideas?

/Martin Vollrathson

_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel

Reply via email to