From fdc1560a0ed31f0c275c47ac8cb7521c0c636ddf Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 1 Mar 2013 11:17:56 +0100 Subject: core: move X11 specific code to x11_common.c Nothing changes, because vo_check_events() is called at the same place anyway. --- video/out/x11_common.c | 5 ++++- video/out/x11_common.h | 2 -- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'video') diff --git a/video/out/x11_common.c b/video/out/x11_common.c index 0514e88fef..8ad9be3dc9 100644 --- a/video/out/x11_common.c +++ b/video/out/x11_common.c @@ -128,6 +128,7 @@ typedef struct static void vo_x11_update_geometry(struct vo *vo, bool update_pos); static int vo_x11_get_fs_type(struct vo *vo); +static void xscreensaver_heartbeat(struct vo_x11_state *x11); static void saver_on(struct vo_x11_state *x11); static void saver_off(struct vo_x11_state *x11); static void vo_x11_selectinput_witherr(Display *display, Window w, @@ -689,6 +690,8 @@ int vo_x11_check_events(struct vo *vo) x11->mouse_waiting_hide = 0; } + xscreensaver_heartbeat(vo->x11); + if (WinID > 0) ret |= check_resize(vo); while (XPending(display)) { @@ -1359,7 +1362,7 @@ void vo_x11_border(struct vo *vo) vo_x11_decoration(vo, vo_border && !vo_fs); } -void xscreensaver_heartbeat(struct vo_x11_state *x11) +static void xscreensaver_heartbeat(struct vo_x11_state *x11) { unsigned int time = GetTimerMS(); diff --git a/video/out/x11_common.h b/video/out/x11_common.h index 87067fc2a6..57db73b847 100644 --- a/video/out/x11_common.h +++ b/video/out/x11_common.h @@ -134,6 +134,4 @@ void vo_x11_update_screeninfo(struct vo *vo); double vo_x11_vm_get_fps(struct vo *vo); -void xscreensaver_heartbeat(struct vo_x11_state *x11); - #endif /* MPLAYER_X11_COMMON_H */ -- cgit v1.2.3