wayland: remove erroneous POLLERR usage
POLLERR is only returned in `.revents` and is ignored in `.events`
This commit is contained in:
1 parent
76589a5b34
commit
7ad7609541
1 file changed
+1
-1
@@ -1338,7 +1338,7 @@ static void check_dnd_fd(struct vo_wayland_state *wl)
|
||||
if (wl->dnd_fd == -1)
|
||||
return;
|
||||
|
||||
struct pollfd fdp = { wl->dnd_fd, POLLIN | POLLERR | POLLHUP, 0 };
|
||||
struct pollfd fdp = { wl->dnd_fd, POLLIN | POLLHUP, 0 };
|
||||
if (poll(&fdp, 1, 0) <= 0)
|
||||
return;
|
||||
|
||||
|
||||
Reference in new issue
Block a user