From dafced8a8adab9b0c7d87fa23609cc0dc3359b3a Mon Sep 17 00:00:00 2001 From: sfan5 Date: Wed, 28 Feb 2024 18:16:51 +0100 Subject: [PATCH] wayland_common: fix type of dnd_action The default value of -1 and comparisons >= 0 only work properly with an int type. --- video/out/wayland_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;