fix initial state of visual feedback

--HG--
extra : convert_revision : svn%3Aeebe1cee-a9af-4fe4-bd26-ad572b19c5ab/trunk%4079
This commit is contained in:
mathias.gumz 2008-10-05 15:56:59 +00:00
parent 3586877dc0
commit 232dd601d9

View file

@ -205,7 +205,7 @@ static int eventLoop(struct aOpts* opts, struct aXInfo* xi) {
const long max_goodwill = 5 * 30000; /* 150 seconds */ const long max_goodwill = 5 * 30000; /* 150 seconds */
long goodwill = max_goodwill; long goodwill = max_goodwill;
long timeout = 0; long timeout = 0;
int mode = READY; int mode = INITIAL;
struct aFrame* frame = alock_create_frame(xi, 0, 0, xi->width_of_root[0], xi->height_of_root[0], 10); struct aFrame* frame = alock_create_frame(xi, 0, 0, xi->width_of_root[0], xi->height_of_root[0], 10);
@ -223,7 +223,7 @@ static int eventLoop(struct aOpts* opts, struct aXInfo* xi) {
} }
// swallow up first keypress after timeout // swallow up first keypress after timeout
if (mode == WRONG) { if (mode == WRONG || mode == INITIAL) {
mode = READY; mode = READY;
break; break;
} }