diff --git a/WINGs/wevent.c b/WINGs/wevent.c index a112bcd5..9656ddaa 100644 --- a/WINGs/wevent.c +++ b/WINGs/wevent.c @@ -797,15 +797,15 @@ W_WaitForEvent(Display *dpy, unsigned long xeventmask) mask = 0; if ((handler->mask & WIReadMask) && - fds[k].revents & (POLLIN|POLLRDNORM|POLLRDBAND|POLLPRI)) + (fds[k].revents & (POLLIN|POLLRDNORM|POLLRDBAND|POLLPRI))) mask |= WIReadMask; if ((handler->mask & WIWriteMask) && - fds[k].revents & (POLLOUT | POLLWRBAND)) + (fds[k].revents & (POLLOUT | POLLWRBAND))) mask |= WIWriteMask; if ((handler->mask & WIExceptMask) && - fds[k].revents & (POLLHUP | POLLNVAL | POLLERR)) + (fds[k].revents & (POLLHUP | POLLNVAL | POLLERR))) mask |= WIExceptMask; next = handler->next; diff --git a/WINGs/wutil.c b/WINGs/wutil.c index d939c04b..92cb1a7e 100644 --- a/WINGs/wutil.c +++ b/WINGs/wutil.c @@ -443,15 +443,15 @@ handleInputEvents(Bool waitForInput) mask = 0; if ((handler->mask & WIReadMask) && - fds[k].revents & (POLLIN|POLLRDNORM|POLLRDBAND|POLLPRI)) + (fds[k].revents & (POLLIN|POLLRDNORM|POLLRDBAND|POLLPRI))) mask |= WIReadMask; if ((handler->mask & WIWriteMask) && - fds[k].revents & (POLLOUT | POLLWRBAND)) + (fds[k].revents & (POLLOUT | POLLWRBAND))) mask |= WIWriteMask; if ((handler->mask & WIExceptMask) && - fds[k].revents & (POLLHUP | POLLNVAL | POLLERR)) + (fds[k].revents & (POLLHUP | POLLNVAL | POLLERR))) mask |= WIExceptMask; next = handler->next;