FVWM: Re: strange keybindings - patch

From: Martin Renold <martinxyz_at_gmx.ch>
Date: Mon, 5 Aug 2002 20:54:29 +0200

Hi,

On Mon, Aug 05, 2002 at 02:09:08AM +0200, Dominik Vogt wrote:
> On Fri, Aug 02, 2002 at 09:07:37PM +0200, Martin Renold wrote:
> > The problem was that the "section" keysym I used is bound on the german
> > keyboard also to the "s"-key in combination with some unknown modifier
> > (I've never used this). It is the same with some other keys.
>
> Ah yes, I unserstand the problem. I've made a different patch
> that does not prevent this bindings in general but only when there
> are no "better" matches for the keysym (i.e. if there are no keys
> that generate the keysym without any modifiers or with just shift
> or caps-lock). Try this code in place of the "default" clause
> you modified in Bindings.c:

It doesn't work (I acutally tried it), and I know why. Perhaps my
description of the problem wasn't exact enough. Have a look at
# xmodmap -pke | grep section
keycode 39 = s S ssharp section
keycode 49 = section degree notsign

What I want to bind is keycode 49 with no modifier pressed. The loop
iterates through each keycode, and executes for keycode 39 the default
statement, and binds it. It doesn't care about the "better" match
(keycode 49), and binds both, with no modifiers, which makes the "s" key
unuseable. The result was, that without my patch, I was unable to bind
the section key properly.

What I would accept is that it binds to the "s" key only if no other
keycode is able to produce the section keysym. I thought about that, and
I think it would be more expensive to implement.

>
> default:
> /* key generates the key sym with unknown modifiers depressed -
> * can't map that to specific modifiers - treat as no modifiers */
> if (modifiers != AnyModifier)
> {
> /* but don't bind it again if already bound with shift, caps-lock
> * or no modifiers */
> check_bound_mask = 0x7;
> }
> break;

Please CC me any response, I am still not subscribed to the list.

bye,
Martin
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Mon Aug 05 2002 - 13:55:29 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:53 BST