From 082c5c19a1efe3c450f1ad1b0411d335be88e60e Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 4 Jan 2014 16:59:22 +0100 Subject: input: move files drag and drop to a new event.c file event.c will be used to feed the input queue with 'global' events that don't mesh well with the usual check_events path in mpv. --- video/out/x11_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'video/out/x11_common.c') diff --git a/video/out/x11_common.c b/video/out/x11_common.c index 2e8b0917ac..a48c3f6e0e 100644 --- a/video/out/x11_common.c +++ b/video/out/x11_common.c @@ -27,6 +27,7 @@ #include "options/options.h" #include "common/msg.h" #include "input/input.h" +#include "input/event.h" #include "libavutil/common.h" #include "x11_common.h" #include "talloc.h" @@ -749,7 +750,7 @@ static bool dnd_handle_drop_data(struct vo *vo, bstr data) char *s = bstrto0(tmp, line); MP_TARRAY_APPEND(tmp, files, num_files, s); } - vo_drop_files(vo, num_files, files); + mp_event_drop_files(vo->input_ctx, num_files, files); talloc_free(tmp); return num_files > 0; } -- cgit v1.2.3