mirror of https://github.com/mpv-player/mpv
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
This commit is contained in:
parent
7a8f8317fd
commit
7440b82eb7
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue