On Mon, Jan 28, 2002 at 03:31:50PM +0100, Jan Martinek wrote: > > > > On Sun, Jan 27, 2002 at 06:10:36PM +0100, Jan Martinek wrote: > > > > Please always reply to our mailing list, no to me personally. > > > > > > On Sun, Jan 27, 2002 at 05:09:31PM +0100, Jan Martinek wrote: > > > > > Hello, > > > > > > > > > > some time ago I tried to send a bugreport (incoming, #837) but > > > > > I claimed rather missleading and vague information. > > > > > Let me please try to define the problem once more, from scratch: > > > > > > > > > > Fvwm does not respond to key bindings if this condition is met: > > > > > Czech keyboard layout is selected AND no window has focus. > > > > > > > > > > This is the contents of my /.fvwm2rc > > > > > It contains only one line defining key for starting rxvt > > > > > (shift+ctrl+r). > > > > > > > > > > #beginning of /.fvwm2rc > > > > > Key r A SC Exec exec rxvt > > > > > #end of /.fvwm2rc > > > > > > > > > > this is the contents of .xinitrc > > > > > > > > > > #beginning of /.xinitrc > > > > > setxkbmap 'cz(us_cz_prog)' > > > > > exec fvwm2 > > > > > #end of /.xinitrc > > > > > > > > > > (in case of XFree86-4.1.0-3 there must be > > > > > setxkbmap 'cz' > > > > > instead) > > > > > > > > When I use > > > > > > > > setxkbmap 'cz' > > > > > > > > I get this error message: > > > > > > > > > Error: Can't find file "cz" for symbols include > > > > > Exiting > > > > > Abandoning symbols file "default" > > > > > > > > And when I use > > > > > > > > setxkbmap 'cz(us_cz_prog)' > > > > > > > > the X server crashes with a floating point exception as soon as I > > > > press any key. How do I get that working? > > > > > > I really have no idea why it crashes. It should work on plain Redhat > > > installation. But I will try this also on other distributions. > > > > SuSE 7.2 here. > > I tried the same on my friend's SuSE 7.3: > > command > setxkbmap 'cz(us_cz_prog)' > failed with this error: > > Error loading new keyboard description > > so I tried > > setxkbmap 'cz' > > and this worked OK. It activated the czech keyboard layout. > The difference is probably in X server version. SuSE 7.3 has > xf86-4.1.0-52 > > SuSE 7.2 seems to have something older (4.0.3 maybe?). > > But on SuSE I found something that makes me to change the description > of the strange behaviour. It worked fine with the czech keyboard > but wrong with the US layout! So on SuSE it was like this: > > fvwm ignores key bindings if the keyboard was toggled from czech to US > AND no window has the focus. > > And another thing: > > fvwm ignores key bindings if the numlock was toggled on > AND no window has the focus. No matter what the keyboard > layout was. > > HEY! NOW I found something similar on my system: > > fvwm ignores key bindings if the capslock was toggled on > AND no window has the focus. No matter what the keyboard > layout is. > > I cannot check out the numlock on my system, because I remapped > numlock to something else.
Hm, that sounds like the old problem with modifiers an bindings. Perhaps one of the modifiers is activated when you switch the keyboard layout. Then, many bindings stop working until the modifier key is disabled (see question 0.1 in our FAQ, you'll also find a solution there). You can verify this with xev. Run xev, then give it the focus and hit return once. YOu should get some output like this: KeyRelease event, serial 32, synthetic NO, window 0x2400001, root 0x57, subw 0x0, time 2936665917, (70,80), root:(820,102), state 0x0, keycode 36 (keysym 0xff0d, Return), same_screen YES, " XLookupString gives 1 characters: " The only interesting thing is the value behind "state". If any modifiers were active when you released the return key, the value will be some value not equal to 0x0 if its any value except 0x0 or 0x2 (Caps-Lock), this is the problem. Bye Dominik ^_^ ^_^ -- Dominik Vogt, [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] -- Visit the official FVWM web page at <URL:http://www.fvwm.org/>. To unsubscribe from the list, send "unsubscribe fvwm-workers" in the body of a message to [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]