1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-22 15:56:59 +00:00

wayland_common: log if DND fails

This can happen if the compositor or applications don't behave correctly,
so let the user know to aid debugging.
This commit is contained in:
sfan5 2024-02-28 16:54:33 +01:00
parent f36ab2c609
commit 98f7f9e25e

View File

@ -1593,6 +1593,8 @@ static void check_dnd_fd(struct vo_wayland_state *wl)
}
if (fdp.revents & (POLLIN | POLLERR | POLLHUP)) {
if (wl->dnd_action >= 0)
MP_VERBOSE(wl, "DND aborted (hang up or error)\n");
free_dnd_data(wl);
close(wl->dnd_fd);
wl->dnd_fd = -1;