diff options
Diffstat (limited to 'video/out/x11_common.c')
-rw-r--r-- | video/out/x11_common.c | 5 |
1 files changed, 4 insertions, 1 deletions
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(); |