diff options
author | ptt <ptt@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-11-21 23:51:27 +0000 |
---|---|---|
committer | ptt <ptt@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-11-21 23:51:27 +0000 |
commit | 7440b82eb787d2b29d36a3e4752b0e0d5074d469 (patch) | |
tree | a115a0531aa79206a2e5ce3413085da8aeeac12a /libvo | |
parent | 7a8f8317fd501364b3c76156189c2100d338097f (diff) | |
download | mpv-7440b82eb787d2b29d36a3e4752b0e0d5074d469.tar.bz2 mpv-7440b82eb787d2b29d36a3e4752b0e0d5074d469.tar.xz |
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
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/x11_common.c | 2 |
1 files changed, 2 insertions, 0 deletions
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)) { |