[hackers] [libixp] Run preselect after timers. || Kris Maglione

From: <hg_AT_suckless.org>
Date: Mon, 14 Jun 2010 14:47:26 +0000 (UTC)

changeset: 124:3093888a7e6e
tag: tip
user: Kris Maglione <kris_AT_suckless.org>
date: Mon Jun 14 10:47:18 2010 -0400
files: lib/libixp/server.c
description:
Run preselect after timers.

diff -r 2822be6fdf1c -r 3093888a7e6e lib/libixp/server.c
--- a/lib/libixp/server.c Tue Jun 01 20:17:17 2010 -0400
+++ b/lib/libixp/server.c Mon Jun 14 10:47:18 2010 -0400
@@ -140,9 +140,6 @@
         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 @@
                         tvp = &tv;
                 }
 
+ if(s->preselect)
+ s->preselect(s);
+
                 if(!s->running)
                         break;
 
Received on Mon Jun 14 2010 - 14:47:26 UTC

This archive was generated by hypermail 2.2.0 : Mon Jun 14 2010 - 14:48:05 UTC