Don't abort when xscreensaver window isn't available anymore.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17124 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
al 2005-12-07 11:39:24 +00:00
parent d23cd76afb
commit d9329207cc
1 changed files with 2 additions and 0 deletions

View File

@ -1586,8 +1586,10 @@ void xscreensaver_heartbeat(void)
ev.xclient.data.l[0] = (long) deactivate;
mp_msg(MSGT_VO, MSGL_DBG2, "Pinging xscreensaver.\n");
old_handler = XSetErrorHandler(badwindow_handler);
XSendEvent(mDisplay, xs_windowid, False, 0L, &ev);
XSync(mDisplay, False);
XSetErrorHandler(old_handler);
}
}