1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-21 15:27:00 +00:00

x11_common: reduce screensaver heartbeat from 30 to 10 seconds

Apparently this fixes issues with Gnome, which has a smaller timeout.
See github issue #315.
This commit is contained in:
wm4 2013-10-25 20:30:01 +02:00
parent cb355443dc
commit 6cdc5627f0

View File

@ -1543,7 +1543,7 @@ static void xscreensaver_heartbeat(struct vo_x11_state *x11)
double time = mp_time_sec();
if (x11->display && x11->screensaver_off &&
(time - x11->screensaver_time_last) > 30)
(time - x11->screensaver_time_last) >= 10)
{
x11->screensaver_time_last = time;