Use wi_readevent in wmii.sh eventloop, too.

This commit is contained in:
Kris Maglione 2010-05-27 12:16:55 -04:00
parent 4279d1ccc5
commit 9475f7746a
1 changed files with 5 additions and 1 deletions

View File

@ -190,10 +190,14 @@ wi_selclient() {
wmiir read /client/sel/ctl | sed 1q | tr -d '\012'
}
wi_readevent() {
wmiir read /event
}
wi_eventloop() {
echo "$Keys" | wmiir write /keys
wmiir read /event | while read wi_event
wi_readevent | while read wi_event
do
IFS="$wi_newline"
wi_arg=$(echo "$wi_event" | sed 's/^[^ ]* //')