From 5e32d1cb4f539e801cc48f5f975dd4de12af7edb Mon Sep 17 00:00:00 2001 From: dan Date: Mon, 22 Nov 1999 04:53:32 +0000 Subject: [PATCH] input handler again. forgot some paranthesis. --- WINGs/wevent.c | 6 +++--- WINGs/wutil.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) 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;