Re: Detecting the used keyboard driver

2009-05-03 Thread Marvin Raaijmakers
ether kbd or evdev is in use." And now we've come to the main question in my first mail: how can i detect whether the X server uses the evdev or kbd driver? On Thu, Apr 30, 2009 at 8:20 PM, Matthew Garrett wrote: > On Thu, Apr 30, 2009 at 08:09:01PM +0200, Marvin Raaijmakers wrote: >

Re: Detecting the used keyboard driver

2009-04-30 Thread Marvin Raaijmakers
ught about this ;) - Marvin On Wed, Apr 29, 2009 at 10:26 PM, Matthew Garrett wrote: > On Tue, Apr 28, 2009 at 11:10:57AM +0200, Marvin Raaijmakers wrote: >> Well I developed keyTouch, a program that allows the user to bind >> actions to extra function keys (like the Play/Pause, WWW or

Re: Detecting the used keyboard driver

2009-04-29 Thread Marvin Raaijmakers
+ kernel_keycode My program does not bind an X key symbol to the X keycode, since that is not needed for grabbing a key (XGrabKey() takes the key's keycode as an argument). - Marvin On Wed, Apr 29, 2009 at 12:14 AM, Peter Hutterer wrote: > On Tue, Apr 28, 2009 at 11:10:57AM +0200

Re: Detecting the used keyboard driver

2009-04-28 Thread Marvin Raaijmakers
the X server instead of the kbd driver. What do you mean by "query the keyboards for all properties"? Using XListInputDevices? Then there need to be different values for min_keycode, max_keycode or num_keys (or am I wrong?). These are however the same for evdev and kbd. Regards, Marvin

Detecting the used keyboard driver

2009-04-27 Thread Marvin Raaijmakers
Is there a way to detect, from the host that runs the X clients, what keyboard driver is used by the X server? I want to know this because I want to write a program that should behave differently when the evdev driver is used instead of the traditional keyboard driver. Regards, Marvin Raaijmakers