> I'd like to add a special hotkey feature to the icewm window manager:
> If the user holds down a (function) key for a configurable 
> amount of seconds a program will be executed.
> 
> Now my problem is how to query the key states in xlib.
> 
> My first attempt was using XGrabKey and calculating the time 
> between KeyPress and KeyRelease events but this did not work
> because of two problems:
> . Autorepeat must not be set (bad thing)

You can disable autorepeat per key.  See man XChangeKeyboardControl

> Can anyone tell me how to query the real state of a specific key
> (Pressed/Released?) with xlib ?

man XQueryKeymap

-- 
 Ivan U. Pascal         |   e-mail: [EMAIL PROTECTED]
   Administrator of     |   Tomsk State University
     University Network |       Tomsk, Russia
_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel

Reply via email to