libixp

git clone git://oldgit.suckless.org/libixp/
Log | Files | Refs | LICENSE

commit 758aab6ce4130bdb4ec99cdaf8c714b1a2c8a761
parent fd97afc36937f26be9ce3fdd38aee925a4d32ea9
Author: Kris Maglione <kris@suckless.org>
Date:   Mon, 14 Jun 2010 10:47:18 -0400

Run preselect after timers.

Diffstat:
lib/libixp/server.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/libixp/server.c b/lib/libixp/server.c @@ -140,9 +140,6 @@ ixp_serverloop(IxpServer *s) { s->running = 1; thread->initmutex(&s->lk); while(s->running) { - if(s->preselect) - s->preselect(s); - tvp = nil; timeout = ixp_nexttimer(s); if(timeout > 0) { @@ -151,6 +148,9 @@ ixp_serverloop(IxpServer *s) { tvp = &tv; } + if(s->preselect) + s->preselect(s); + if(!s->running) break;