Skip to contentSkip to conversation

Koen Kooi: gtk+ 2.18.3: enable xkb for angstrom

oe-commits Stanislav Brabec 1 participant 1 message Jan 27, 2010

lore
Share & tools
lore
#0 lore raw

Thanks for enabling XKB.

I was thinking about a more complicated solution in distro config, but did not yet implement it.

Maybe doing the reverse (enable XKB for everything except listed distributions) would be better:

1. GTK+ works correctly without enabling XKB only:
- If the system has no keyboard
or
- If the system uses xserver-kdrive-1.3.0.0
and
- Nobody uses this GTK+ on a remote XKB capable display.

Later kdrive versions have problems with keyboard
(see /etc/X11/Xinit.d/98keymap-fixup). Maybe it has something to do with optional-xkb.patch.

Note that enabling XKB in GTK+ does not add large amount of code (several hundreds of lines).

2. xserver-common hardcodes many xmodmap calls in /etc/init.d/Xinit.d. It surely breaks the default XKB keymap.

Thinking about it, maybe something like directory /etc/machine/xorg, /etc/machine/kdrive etc., where /etc/machine may be created by a separate package or a symlink configured during the first boot would be better than calling MACHINE=awk 'BEGIN { FS=": " } /Hardware/ { print $2 } ' </proc/cpuinfo ten times.
(Well, the packaging time solution may have files inside /etc/default or /etc/sysconfig.)

Note:
1. also affects:
xorg-app/xdpyinfo
xorg-app/xset
xorg-lib/libxt

________________________________________________________________________
Stanislav Brabec
http://www.penguin.cz/~utx/zaurus