Re: [dev] wmii - key events are not read unless they are repeated

From: Ben Smith <bensmith87_AT_gmail.com>
Date: Sun, 8 May 2011 18:33:54 +1000

> Interesting, I suppose you could try omitting the daemonizing logic:
>
> Mod4-p) ls / | wimenu ;;
>

Still the same behaviour

I think it is something to do with splitting the event line up into parts...

I put an echo at the start of the while loop that reads each event line:

# Open /event for reading
wmiir read /event |
# Read the events line by line
while read line; do
    echo reading line from event: $line

    # Split the line into words, store in $@
    set -- $line
    event=$1; shift
    line = "$(echo $line | sed 's/^[^ ]* //' | tr -d '\n')"

And the output after one press of Mod4-p is:
reading line from event: Key Mod4-p

and then after a second press the menu is displayed and the following is
displayed:
Key Mod4-p

I don't even know where this second echo is coming from, hmm...
Received on Sun May 08 2011 - 10:33:54 CEST

This archive was generated by hypermail 2.2.0 : Sun May 08 2011 - 10:36:03 CEST