summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-10-25 20:30:01 +0200
committerwm4 <wm4@nowhere>2013-11-02 19:02:29 +0100
commit6cdc5627f008c6003015818f9f9854ba33628b6c (patch)
tree74adfb8225c27ffe9b37c2396815008f7bbb59bc
parentcb355443dc62d89d064dc1a8062092310014a1ef (diff)
downloadmpv-6cdc5627f008c6003015818f9f9854ba33628b6c.tar.bz2
mpv-6cdc5627f008c6003015818f9f9854ba33628b6c.tar.xz
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.
-rw-r--r--video/out/x11_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/x11_common.c b/video/out/x11_common.c
index 2e51eea47a..426b65b05a 100644
--- a/video/out/x11_common.c
+++ b/video/out/x11_common.c
@@ -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;