FVWM: Re: strange keybindings - patch

From: Dominik Vogt <dominik.vogt_at_gmx.de>
Date: Mon, 5 Aug 2002 02:09:08 +0200

On Fri, Aug 02, 2002 at 09:07:37PM +0200, Martin Renold wrote:
> Hi there,
>
> I just tried fvwm, and decided have a closer look.
>
> So I wrote a config file to get the same keybindings as I use in wmaker,
> but suddenly found the "s"-key was now bound to one of my actions too.
>
> 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.
>
> A simple patch is attached. Please CC me any response, I am not
> subscribed to the list.

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:

        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;

Bye

Dominik ^_^ ^_^

 --
Dominik Vogt, dominik.vogt_at_gmx.de
Reply-To: dominik.vogt_at_gmx.de
--
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 Sun Aug 04 2002 - 20:10:24 BST

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