1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-02 06:05:45 +01:00

input handler again. forgot some paranthesis.

This commit is contained in:
dan
1999-11-22 04:53:32 +00:00
parent d6fb042749
commit 5e32d1cb4f
2 changed files with 6 additions and 6 deletions

View File

@@ -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;

View File

@@ -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;