Re: xkb/xlib problem key states

2003-10-22 Thread Ivan Pascal
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

Re: xkb/xlib problem key states

2003-10-22 Thread Peter Bergmann
thx for the great help. XAllowEvents together with Ivan's hint (disable autorepeat per key) works absolute perfectly :)) XKB allows you to switch to detectable auto-repeat mode, where you get Press/Press/Press/Release rather than Press/Release Press/Release Press/Release. You can

Re: xkb/xlib problem key states

2003-10-22 Thread Peter Bergmann
Sorry. I was a bit too fast on my last reply. No - This gnome mouse pointer locate code does not work for my issue! If this option is set in gnome no application will get the KeyPress event for Control_L or Control_R anymore ! (Which is not a big problem because Control is a modifier and the

xkb/xlib problem key states

2003-10-21 Thread Peter Bergmann
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