Re: [dwm] dwm stealing input

From: Anselm R. Garbe <arg_AT_suckless.org>
Date: Thu, 26 Oct 2006 17:13:59 +0200

On Fri, Oct 27, 2006 at 12:34:39AM +0930, Stephen Caraher wrote:
> On 13:33, Thu 26 Oct 06, Anselm R. Garbe wrote:
> The special keys are the multimedia keys on the front of the Dell Inspiron
> 6000 laptop, and they don't by default map to any keysyms, only keycodes --
> which I now remember I had defined in my .Xmodmap. I've redefined them,
> they are:
>
> keycode 160 = XF86AudioMute
> keycode 174 = XF86AudioLowerVolume
> keycode 176 = XF86AudioRaiseVolume
> keycode 162 = XF86AudioPlay
> keycode 144 = XF86AudioPrev
> keycode 153 = XF86AudioNext
> keycode 164 = XF86AudioStop

So can't you use XK_XF86Audio* in such a case as keysym?

> The keysym numbers I have in my config.h are exactly the same as the definitions
> of the above keysym names in <X11/XF86keysym.h>. I must have been too scared to
> modify dwm's source code at the time I wrote that part of the config, so I was
> using the raw numbers instead of including XF86keysym.h in event.c and using the
> macros. Regardless of whether or not I keep the numbers or use the macros, this
> is what I get upon dwm startup when I use AnyModifier instead of 0:
>
> dwm: fatal error: request code=33, error code=2
> X Error of failed request: BadValue (integer parameter out of range for operation)
> Major opcode of failed request: 33 (X_GrabKey)
> Value in failed request: 0x8002
> Serial number of failed request: 216
> Current serial number in output stream: 243
>
> Using 0 works, as it always has.

Using AnyModifier in conjunction with XK_* should work as
well... hmmm.

Regards,

-- 
 Anselm R. Garbe  ><><  http://suckless.org/~arg/  ><><  GPG key: 0D73F361
Received on Thu Oct 26 2006 - 17:13:59 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:32:11 UTC