summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libvo/vo_xv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libvo/vo_xv.c b/libvo/vo_xv.c
index 76138e9ae2..1a035d5f19 100644
--- a/libvo/vo_xv.c
+++ b/libvo/vo_xv.c
@@ -39,6 +39,8 @@ Buffer allocation:
#include "subopt-helper.h"
+#include "input/input.h"
+
#ifdef HAVE_NEW_GUI
#include "gui/interface.h"
#endif
@@ -713,6 +715,7 @@ static void uninit(void)
#ifdef HAVE_XF86VM
vo_vm_close(mDisplay);
#endif
+ mp_input_rm_event_fd(ConnectionNumber(mDisplay));
vo_x11_uninit();
}
@@ -834,6 +837,7 @@ static int preinit(const char *arg)
fo = XvListImageFormats(mDisplay, xv_port, (int *) &formats);
+ mp_input_add_event_fd(ConnectionNumber(mDisplay), check_events);
return 0;
}