This will only work if the window manager or the window with focus doesn't already grab the same keys. Does the example work without a window manager
running?

Thanks for the reply, but I believe libX will generate an error if the keys are already grabbed. In this case there is no error generated.

Anyway, I discovered the problem. I was using the ControlMask modifier, and the numlock was down on my keyboard. Evidently numlock counts as a modifier. *doh*. The example works fine now.
_______________________________________________
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg
Your subscription address: arch...@mail-archive.com

Reply via email to