--- src/NextEvent.c.orig 2006-07-12 03:05:55.000000000 +0900 +++ src/NextEvent.c 2009-02-14 17:22:36.000000000 +0900 @@ -259,7 +259,7 @@ #define XPOLL_READ (POLLIN|POLLRDNORM|POLLPRI|POLLRDBAND) #define XPOLL_WRITE (POLLOUT|POLLWRNORM|POLLWRBAND) -#define XPOLL_EXCEPT 0 +#define XPOLL_EXCEPT (POLLNVAL) if (!ignoreEvents) wf->fdlistlen = wf->num_dpys = app->count;