Poll revents reset

This commit is contained in:
dec05eba
2026-03-11 11:39:36 +01:00
parent 02e4e25b75
commit 83aa20a9e4
4 changed files with 13 additions and 2 deletions

View File

@@ -43,6 +43,7 @@ namespace gsr {
XEvent xev;
while(running) {
poll_fds[0].revents = 0;
poll(poll_fds, 1, 100);
while(XPending(dpy)) {
XNextEvent(dpy, &xev);