From 98f7f9e25ede8ffba43ecbca6cbc7037c5088b05 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Wed, 28 Feb 2024 16:54:33 +0100 Subject: 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. --- video/out/wayland_common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index f45f808773..be42ad3854 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -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; -- cgit v1.2.3