Remove multiplex (useless without FIFO) | NB: for FIFO checkout 'linkdd' branch
This commit is contained in:
parent
bd263930fd
commit
8e8aeb950d
@ -211,26 +211,10 @@ static void
|
||||
wmfs_loop(void)
|
||||
{
|
||||
XEvent ev;
|
||||
int fd = ConnectionNumber(W->dpy);
|
||||
fd_set iset;
|
||||
|
||||
while(W->running)
|
||||
{
|
||||
FD_ZERO(&iset);
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
while(XPending(W->dpy))
|
||||
while(W->running && !XNextEvent(W->dpy, &ev))
|
||||
HANDLE_EVENT(&ev);
|
||||
}
|
||||
|
||||
static inline void
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user