# HG changeset patch # User uau # Date 1188016097 0 # Node ID d43cda21236d556951b612dca9ab4dbafb76fba9 # Parent 9f234010c4be478a839af0b0d1cba288f5d63a48 Watch X11 fd in main input select() if using vo xv Add the X11 fd to main input select() set, and call VO check_events() if it becomes readable. Only done in vo xv code for now, though would make sense for other X11-based VOs too. diff -r 9f234010c4be -r d43cda21236d libvo/vo_xv.c --- a/libvo/vo_xv.c Sat Aug 25 04:28:14 2007 +0000 +++ b/libvo/vo_xv.c Sat Aug 25 04:28:17 2007 +0000 @@ -39,6 +39,8 @@ #include "subopt-helper.h" +#include "input/input.h" + #ifdef HAVE_NEW_GUI #include "gui/interface.h" #endif @@ -713,6 +715,7 @@ #ifdef HAVE_XF86VM vo_vm_close(mDisplay); #endif + mp_input_rm_event_fd(ConnectionNumber(mDisplay)); vo_x11_uninit(); } @@ -834,6 +837,7 @@ fo = XvListImageFormats(mDisplay, xv_port, (int *) &formats); + mp_input_add_event_fd(ConnectionNumber(mDisplay), check_events); return 0; }