From 232dd601d9776848e1d9317049d99694428f74a3 Mon Sep 17 00:00:00 2001 From: "mathias.gumz" Date: Sun, 5 Oct 2008 15:56:59 +0000 Subject: [PATCH] fix initial state of visual feedback --HG-- extra : convert_revision : svn%3Aeebe1cee-a9af-4fe4-bd26-ad572b19c5ab/trunk%4079 --- src/alock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/alock.c b/src/alock.c index e6919d3..6b3265e 100644 --- a/src/alock.c +++ b/src/alock.c @@ -205,7 +205,7 @@ static int eventLoop(struct aOpts* opts, struct aXInfo* xi) { const long max_goodwill = 5 * 30000; /* 150 seconds */ long goodwill = max_goodwill; 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); @@ -223,7 +223,7 @@ static int eventLoop(struct aOpts* opts, struct aXInfo* xi) { } // swallow up first keypress after timeout - if (mode == WRONG) { + if (mode == WRONG || mode == INITIAL) { mode = READY; break; }