# HG changeset patch # User ptt # Date 1132617087 0 # Node ID c20b4b1d0676a1e791180379b433a25499b85994 # Parent dd5be8f8d16dc3be51fa715a095b6174036f5457 resolves problem in module stop_xscreensaver, crashing mp after sleep and awake or enabling/disabling xssaver by hand diff -r dd5be8f8d16d -r c20b4b1d0676 libvo/x11_common.c --- 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)) {