changeset 17024:c20b4b1d0676

resolves problem in module stop_xscreensaver, crashing mp after sleep and awake or enabling/disabling xssaver by hand
author ptt
date Mon, 21 Nov 2005 23:51:27 +0000
parents dd5be8f8d16d
children 8e458f513c48
files libvo/x11_common.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/x11_common.c	Mon Nov 21 22:53:14 2005 +0000
+++ b/libvo/x11_common.c	Mon Nov 21 23:51:27 2005 +0000
@@ -1572,6 +1572,8 @@
     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))
     {