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)
|
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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user