Re: [dwm] xxkb, per window keyboard layout

From: Anselm R Garbe <garbeam_AT_gmail.com>
Date: Fri, 15 Aug 2008 09:49:20 +0100

Hi,

2008/8/10 Stanimir Dragiev <stanio_AT_cs.tu-berlin.de>:
> The *only* problem is: A big deal of the things I type is Cyrillic, so I
> need to use at least 2 keyboard layouts. Usually, the windows in which I
> type Cyrillic and the ones I type Latin, are different. Xxkb is exactly
> about this: remembering the keyboard layout for each window. This means for
> example:
> - default keyboard layout is DEF (alternative is ALT)
> - start terminal A
> - start terminal B
> - focus window A
> - layout in window A is DEF
> - change layout to ALT
> - layout in window A is ALT
> - focus window B
> - layout in window B is DEF
> - focus window A
> - layout in window A is ALT (preserved after focus switch)
>
> Unfortunately, this does not work in dwm. This problem was reported once,
> here:
>
> http://article.gmane.org/gmane.comp.window-managers.dwm/826 ,
>
> but I didn't found any follow-ups. I found the same problem reported for
> xmonad (which I also tried out and verified) here:
>
> http://www.haskell.org/pipermail/xmonad/2008-April/005439.html .
>
> There, some more background is given on the subject (like xxkb relying on
> XReparentWindow ...). The issue appears to be closed for xmonad being xxkb
> issue.

If xxkb depends on XReparentWindow it might set some window properties
on the parent window which are used to remember the kb settings. So
this should be an easy fix in xxkb.

Kind regards,
--Anselm
Received on Fri Aug 15 2008 - 08:49:20 UTC

This archive was generated by hypermail 2.2.0 : Fri Aug 15 2008 - 09:00:04 UTC