wayland: remove erroneous POLLERR usage

POLLERR is only returned in `.revents` and is ignored in `.events`
This commit is contained in:
NRK 2023-06-27 11:50:14 +06:00 committed by sfan5
parent 76589a5b34
commit 7ad7609541
1 changed files with 1 additions and 1 deletions

View File

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