diff options
author | sfan5 <sfan5@live.de> | 2024-02-28 16:54:33 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2024-02-29 17:24:05 +0100 |
commit | 98f7f9e25ede8ffba43ecbca6cbc7037c5088b05 (patch) | |
tree | faa166c30854009cea766f181790f1fd8cb60d72 | |
parent | f36ab2c60963ff5244c16c459c40b6f58d04c8ef (diff) | |
download | mpv-98f7f9e25ede8ffba43ecbca6cbc7037c5088b05.tar.bz2 mpv-98f7f9e25ede8ffba43ecbca6cbc7037c5088b05.tar.xz |
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.
-rw-r--r-- | video/out/wayland_common.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |