1 |
Hello xkb fans, |
2 |
|
3 |
I've recently upgraded to xorg 7.0 and Windowmaker 0.92. For switching |
4 |
windows I'm using Win+TAB instead of Alt+TAB. It starts to behave |
5 |
strange after upgrade. When switching to other window, the bar with |
6 |
windows list remains on screen and I have to press Win key again to |
7 |
disappear it. |
8 |
|
9 |
I found out that Win key (Mod4) is not seen as modifier because it is |
10 |
mapped to wrong keycode: |
11 |
|
12 |
$ xmodmap | grep mod4 |
13 |
mod4 Super_L (0x7f), Hyper_L (0x80) |
14 |
|
15 |
while the xev prints: |
16 |
|
17 |
... |
18 |
state 0x50, keycode 115 (keysym 0xffeb, Super_L), same_screen YES, |
19 |
... |
20 |
state 0x50, keycode 116 (keysym 0xffec, Super_R), same_screen YES, |
21 |
... |
22 |
|
23 |
which is 0x73, 0x74 hexa. |
24 |
|
25 |
|
26 |
I dig in /usr/share/X11/xkb files and found out that Mod4 is mapped to |
27 |
<SUPR> and <HYPR>: |
28 |
|
29 |
from symbols/pc: |
30 |
xkb_symbols "basic" { |
31 |
... |
32 |
key <SUPR> { [ NoSymbol, Super_L ] }; |
33 |
modifier_map Mod4 { <SUPR> }; |
34 |
|
35 |
key <HYPR> { [ NoSymbol, Hyper_L ] }; |
36 |
modifier_map Mod4 { <HYPR> }; |
37 |
|
38 |
|
39 |
from keycodes/xfree86: |
40 |
<SUPR> = 127; // <U7F> |
41 |
<HYPR> = 128; // <U80> |
42 |
|
43 |
which is 0x7f and 0x80 hexa. So it is exactly the same wrong keycode |
44 |
that is printed by xmodmap. |
45 |
|
46 |
Is it a bug? |
47 |
|
48 |
|
49 |
My keyboard config in xorg.conf: |
50 |
|
51 |
Section "InputDevice" |
52 |
Identifier "KME" |
53 |
Driver "kbd" |
54 |
Option "XkbModel" "scorpius" |
55 |
Option "XkbLayout" "us,sk" |
56 |
Option "XkbVariant" ",qwerty" |
57 |
Option "XkbOptions" "grp:shift_toggle,grp_led:scroll" |
58 |
EndSection |
59 |
|
60 |
|
61 |
Robert |
62 |
|
63 |
|
64 |
-- |
65 |
Robert Cernansky |
66 |
E-mail: hslists2@××××××.sk |
67 |
Jabber: HS@××××××.sk |
68 |
|
69 |
-- |
70 |
gentoo-user@g.o mailing list |