Re: FVWM: window-local keymap

From: Dominik Vogt <fvwm_at_fvwm.org>
Date: Mon, 29 Sep 2003 09:59:12 +0200

On Mon, Sep 29, 2003 at 09:38:06AM +0200, KONTRA Gergely wrote:
> On 0928, dominik.vogt_at_gmx.de wrote:
> > On Tue, Sep 23, 2003 at 04:54:58PM +0200, KONTRA Gergely wrote:
> > > Hope it is not in the FAQ:
> > >
> > > I want to set up fvwm to be able to switch languages in windows
> > > independent.
> > What does that mean? What does fvwm have to do with it?
>
> Summary: fvwm must respond to focus changes and store information about
> window-keymap relationships.
>
> When I change keymap, while focus in a window, fvwm should remember the
> keymap associated to that window.
> When I leave the window, fvwm should restore the keymap what was before.
> When I return to that window, fvwm should change to the remembered
> keymap.

Understood. What I do not understand is why the keymap should be
associated with windows. At least on my keyboard, the labels on
the keys are not going to change when the focus is moved.

> So: If I fire up several xterms, (keymap was english before), every
> xterm should will work with english keymap.
>
> Then, I start to write a Hungarian letter in an xterm, so I press
> _whatever_key_ to change the keymap to hu. Then, I switch to another
> xterm, and start to write a German letter (and switch the keyboard with
> the keyboard before, of course)...
>
> Now, when I switch back to my Hungarian letter, I can continue typing,
> because fvwm changed my keyboard to Hungarian.
> Then I switch to the German letter, and continue my German letter. Then,
> I fire up a new xterm, and start typing... and expect an english keymap
> (which is ideal for shells, programming...)

Hm. Well, keymap management is not really in the scope of the
window manager, but with FvwmEvent you can solve this, however
inefficient that solution may be. In the future, FvwmEvent may
move into the fvwm core, which should greatly improve its
performance. I see no need to write a specific command to manage
keymaps.

Ciao

Dominik ^_^ ^_^
--
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 Sep 29 2003 - 03:01:46 BST

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