[PATCH 2/2] xkb: if the keymap failed to compile, load the default keymap instead.

Daniel Stone daniel at fooishbar.org
Thu Feb 10 06:52:26 PST 2011


On Thu, Feb 10, 2011 at 03:34:32PM +1000, Peter Hutterer wrote:
> We really need symbols, compat and types for a sensible keymap.
> 
> Try this in your xorg.conf.d snippets for all keyboards:
>         Option "XkbLayout" "us"
>         Option "XkbVariant" "nodeadkeys"
> 
> us(nodeadkeys) doesn't exist so xkbcomp provides everything but the symbols
> map. We say we want everything but don't _need_ anything, the server happily
> gives us a keymap with every key mapped to NoSymbol. This in turn isn't what
> we want after all.
> 
> So instead, require symbols, compat and types from the keymap and if that
> fails, load the default keymap instead. If that fails too, all bets are off.

I think you also need XkmKeyNamesMask and XkmVirtualModsMask to be
useful.

Cheers,
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg-devel/attachments/20110210/853e4c1a/attachment.pgp>


More information about the xorg-devel mailing list