diff options
author | sfan5 <sfan5@live.de> | 2024-02-28 18:16:51 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2024-02-29 17:24:05 +0100 |
commit | dafced8a8adab9b0c7d87fa23609cc0dc3359b3a (patch) | |
tree | a345c8ca992377996c4366a447fa84f6ee73a586 | |
parent | 878b76f75ea2f9f3177dc064187e91217922c7cc (diff) | |
download | mpv-dafced8a8adab9b0c7d87fa23609cc0dc3359b3a.tar.bz2 mpv-dafced8a8adab9b0c7d87fa23609cc0dc3359b3a.tar.xz |
wayland_common: fix type of dnd_action
The default value of -1 and comparisons >= 0 only work properly
with an int type.
-rw-r--r-- | video/out/wayland_common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/wayland_common.h b/video/out/wayland_common.h index 845632d06f..0554d308ba 100644 --- a/video/out/wayland_common.h +++ b/video/out/wayland_common.h @@ -144,7 +144,7 @@ struct vo_wayland_state { /* DND */ struct wl_data_device_manager *dnd_devman; struct wl_data_offer *dnd_offer; - enum mp_dnd_action dnd_action; + int dnd_action; // actually enum mp_dnd_action char *dnd_mime_type; int dnd_fd; int dnd_mime_score; |