From fde784129f4b94b6fa8b2293127c41dc140b7d3a Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 20 Jul 2016 20:52:08 +0200 Subject: x11: stop using vo.event_fd Instead let it do its own event loop wakeup handling. --- video/out/x11_common.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'video/out/x11_common.h') diff --git a/video/out/x11_common.h b/video/out/x11_common.h index 67e5ac1f0b..d861b32d1c 100644 --- a/video/out/x11_common.h +++ b/video/out/x11_common.h @@ -45,6 +45,8 @@ struct vo_x11_state { struct mp_log *log; struct input_ctx *input_ctx; Display *display; + int event_fd; + int wakeup_pipe[2]; Window window; Window rootwin; Window parent; // embedded in this foreign window @@ -132,6 +134,8 @@ bool vo_x11_create_vo_window(struct vo *vo, XVisualInfo *vis, const char *classname); void vo_x11_config_vo_window(struct vo *vo); int vo_x11_control(struct vo *vo, int *events, int request, void *arg); +void vo_x11_wakeup(struct vo *vo); +void vo_x11_wait_events(struct vo *vo, int64_t until_time_us); void vo_x11_silence_xlib(int dir); -- cgit v1.2.3