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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user