Remove multiplex (useless without FIFO) | NB: for FIFO checkout 'linkdd' branch

This commit is contained in:
David Delassus 2011-09-01 17:45:13 +02:00
parent bd263930fd
commit 8e8aeb950d

View File

@ -211,26 +211,10 @@ static void
wmfs_loop(void) wmfs_loop(void)
{ {
XEvent ev; XEvent ev;
int fd = ConnectionNumber(W->dpy);
fd_set iset;
while(W->running) while(XPending(W->dpy))
{ while(W->running && !XNextEvent(W->dpy, &ev))
FD_ZERO(&iset); HANDLE_EVENT(&ev);
FD_SET(fd, &iset);
if(select(fd + 1, &iset, NULL, NULL, NULL) > 0)
{
if(FD_ISSET(fd, &iset))
{
while(XPending(W->dpy))
{
XNextEvent(W->dpy, &ev);
HANDLE_EVENT(&ev);
}
}
}
}
} }
static inline void static inline void