Re: [dev] [wmii] Ignoring key presses

From: pod <>
Date: Sun, 17 Apr 2011 23:08:48 +0100

>>>>> "JM" == Jay Mundrawala <> 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
<>) 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$ LANG="C" ./wmiir.out read /event
[no output when moving mouse between windows]

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
Received on Mon Apr 18 2011 - 00:08:48 CEST

This archive was generated by hypermail 2.2.0 : Mon Apr 18 2011 - 00:36:02 CEST