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 bc49957458
commit de303d8ba4
+1 -1
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;