Thanks, That fixed it. On Sun, Apr 17, 2011 at 6:08 PM, pod <p...@nervous-energy.org.uk> wrote:
> >>>>> "JM" == Jay Mundrawala <jdmundraw...@gmail.com> writes: > > JM> Ive been trying to use the dev version of wmii and it seems to > JM> be ignoring my key presses. I checked out the output of /event > JM> and theres nothing there. wmii 3.9.2 works fine. Any ideas? > > If by dev version you mean 2785:327e87c7bb2b (current tip from > <http://hg.suckless.org/wmii>) then I believe there is a bug in wmiir > when it is run in a non-UTF-8 locale. If your event loop is dispatching > on keypresses as reported from "wmiir read /event" and that wmiir has > been invoked in a non-UTF-8 locale then this bug may be the issue. > > I see the following: > > shell$ hg id > 327e87c7bb2b tip > shell$ LANG="en_GB.UTF-8" ./wmiir.out read /event > ClientFocus 0x800011 > AreaFocus 1 > ColumnFocus 1 > ClientFocus 0xa0000d > [...] > shell$ > > shell$ LANG="C" ./wmiir.out read /event > [no output when moving mouse between windows] > shell$ > > I'm afraid I've not had time to fully debug and suggest a patch. I > think the problem may be in unflush() which essentially shortcuts to a > straight write(2) in a UTF-8 locale but is rather more complicated > otherwise (it is attempting to transcode from UTF-8 to the local > encoding). > >