From 7440b82eb787d2b29d36a3e4752b0e0d5074d469 Mon Sep 17 00:00:00 2001 From: ptt Date: Mon, 21 Nov 2005 23:51:27 +0000 Subject: resolves problem in module stop_xscreensaver, crashing mp after sleep and awake or enabling/disabling xssaver by hand git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17025 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/x11_common.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libvo') diff --git a/libvo/x11_common.c b/libvo/x11_common.c index ed84a69c40..efe4406f08 100644 --- a/libvo/x11_common.c +++ b/libvo/x11_common.c @@ -1572,6 +1572,8 @@ void xscreensaver_heartbeat(void) unsigned int time = GetTimerMS(); XEvent ev; + if (mDisplay) + xs_windowid = find_xscreensaver_window(mDisplay); if (mDisplay && xs_windowid && ((time - time_last) > 30000 || (time - time_last) < 0)) { -- cgit v1.2.3