public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Mod4 mapped to wrong keycode
@ 2006-08-12 10:42 Robert Cernansky
  2006-08-12 20:53 ` Richard Fish
  0 siblings, 1 reply; 5+ messages in thread
From: Robert Cernansky @ 2006-08-12 10:42 UTC (permalink / raw
  To: gentoo-user

Hello xkb fans,

I've recently upgraded to xorg 7.0 and Windowmaker 0.92. For switching
windows I'm using Win+TAB instead of Alt+TAB. It starts to behave
strange after upgrade. When switching to other window, the bar with
windows list remains on screen and I have to press Win key again to
disappear it.

I found out that Win key (Mod4) is not seen as modifier because it is
mapped to wrong keycode:

$ xmodmap | grep mod4
mod4        Super_L (0x7f),  Hyper_L (0x80)

while the xev prints:

...
state 0x50, keycode 115 (keysym 0xffeb, Super_L), same_screen YES,
...
state 0x50, keycode 116 (keysym 0xffec, Super_R), same_screen YES,
...

which is 0x73, 0x74 hexa.


I dig in /usr/share/X11/xkb files and found out that Mod4 is mapped to
<SUPR> and <HYPR>:

from symbols/pc:
xkb_symbols "basic" {
...
    key <SUPR> {        [ NoSymbol, Super_L     ]       };
    modifier_map Mod4   { <SUPR> };

    key <HYPR> {        [ NoSymbol, Hyper_L     ]       };
    modifier_map Mod4   { <HYPR> };


from keycodes/xfree86:
    <SUPR> =   127; // <U7F>
    <HYPR> =   128; // <U80>

which is 0x7f and 0x80 hexa. So it is exactly the same wrong keycode
that is printed by xmodmap.

Is it a bug?


My keyboard config in xorg.conf:

Section "InputDevice"
        Identifier  "KME"
        Driver      "kbd"
        Option      "XkbModel"   "scorpius"
        Option      "XkbLayout"  "us,sk"
        Option      "XkbVariant" ",qwerty"
        Option      "XkbOptions" "grp:shift_toggle,grp_led:scroll"
EndSection


Robert


-- 
Robert Cernansky
E-mail: hslists2@zoznam.sk
Jabber: HS@jabber.sk

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-08-14  9:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-12 10:42 [gentoo-user] Mod4 mapped to wrong keycode Robert Cernansky
2006-08-12 20:53 ` Richard Fish
2006-08-13  8:16   ` Robert Cernansky
2006-08-13 22:47     ` Benno Schulenberg
2006-08-14  9:21       ` Robert Cernansky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox