mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-15 05:25:53 +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;
|
mask = 0;
|
||||||
|
|
||||||
if ((handler->mask & WIReadMask) &&
|
if ((handler->mask & WIReadMask) &&
|
||||||
fds[k].revents & (POLLIN|POLLRDNORM|POLLRDBAND|POLLPRI))
|
(fds[k].revents & (POLLIN|POLLRDNORM|POLLRDBAND|POLLPRI)))
|
||||||
mask |= WIReadMask;
|
mask |= WIReadMask;
|
||||||
|
|
||||||
if ((handler->mask & WIWriteMask) &&
|
if ((handler->mask & WIWriteMask) &&
|
||||||
fds[k].revents & (POLLOUT | POLLWRBAND))
|
(fds[k].revents & (POLLOUT | POLLWRBAND)))
|
||||||
mask |= WIWriteMask;
|
mask |= WIWriteMask;
|
||||||
|
|
||||||
if ((handler->mask & WIExceptMask) &&
|
if ((handler->mask & WIExceptMask) &&
|
||||||
fds[k].revents & (POLLHUP | POLLNVAL | POLLERR))
|
(fds[k].revents & (POLLHUP | POLLNVAL | POLLERR)))
|
||||||
mask |= WIExceptMask;
|
mask |= WIExceptMask;
|
||||||
|
|
||||||
next = handler->next;
|
next = handler->next;
|
||||||
|
|||||||
@@ -443,15 +443,15 @@ handleInputEvents(Bool waitForInput)
|
|||||||
mask = 0;
|
mask = 0;
|
||||||
|
|
||||||
if ((handler->mask & WIReadMask) &&
|
if ((handler->mask & WIReadMask) &&
|
||||||
fds[k].revents & (POLLIN|POLLRDNORM|POLLRDBAND|POLLPRI))
|
(fds[k].revents & (POLLIN|POLLRDNORM|POLLRDBAND|POLLPRI)))
|
||||||
mask |= WIReadMask;
|
mask |= WIReadMask;
|
||||||
|
|
||||||
if ((handler->mask & WIWriteMask) &&
|
if ((handler->mask & WIWriteMask) &&
|
||||||
fds[k].revents & (POLLOUT | POLLWRBAND))
|
(fds[k].revents & (POLLOUT | POLLWRBAND)))
|
||||||
mask |= WIWriteMask;
|
mask |= WIWriteMask;
|
||||||
|
|
||||||
if ((handler->mask & WIExceptMask) &&
|
if ((handler->mask & WIExceptMask) &&
|
||||||
fds[k].revents & (POLLHUP | POLLNVAL | POLLERR))
|
(fds[k].revents & (POLLHUP | POLLNVAL | POLLERR)))
|
||||||
mask |= WIExceptMask;
|
mask |= WIExceptMask;
|
||||||
|
|
||||||
next = handler->next;
|
next = handler->next;
|
||||||
|
|||||||
Reference in New Issue
Block a user