mirror of
https://github.com/mpv-player/mpv
synced 2024-12-12 01:46:16 +00:00
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:
parent
d23cd76afb
commit
d9329207cc
@ -1586,8 +1586,10 @@ void xscreensaver_heartbeat(void)
|
|||||||
ev.xclient.data.l[0] = (long) deactivate;
|
ev.xclient.data.l[0] = (long) deactivate;
|
||||||
|
|
||||||
mp_msg(MSGT_VO, MSGL_DBG2, "Pinging xscreensaver.\n");
|
mp_msg(MSGT_VO, MSGL_DBG2, "Pinging xscreensaver.\n");
|
||||||
|
old_handler = XSetErrorHandler(badwindow_handler);
|
||||||
XSendEvent(mDisplay, xs_windowid, False, 0L, &ev);
|
XSendEvent(mDisplay, xs_windowid, False, 0L, &ev);
|
||||||
XSync(mDisplay, False);
|
XSync(mDisplay, False);
|
||||||
|
XSetErrorHandler(old_handler);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user