diff options
author | Simon Rettberg | 2022-01-20 13:33:11 +0100 |
---|---|---|
committer | Simon Rettberg | 2022-01-20 13:33:11 +0100 |
commit | 3d748ebe7d900e96670ff3d455896998dfba6191 (patch) | |
tree | e8bbaf6531897a2292da2158a46e9dce3df96baf /driver/prefs.c | |
parent | Re-sync dpms settings on unblank (diff) | |
download | xscreensaver-3d748ebe7d900e96670ff3d455896998dfba6191.tar.gz xscreensaver-3d748ebe7d900e96670ff3d455896998dfba6191.tar.xz xscreensaver-3d748ebe7d900e96670ff3d455896998dfba6191.zip |
Diffstat (limited to 'driver/prefs.c')
-rw-r--r-- | driver/prefs.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/driver/prefs.c b/driver/prefs.c index b608738..8c8c19a 100644 --- a/driver/prefs.c +++ b/driver/prefs.c @@ -971,7 +971,9 @@ write_init_file (Display *dpy, /* Since the .xscreensaver file is used for IPC, let's try and make sure that the bits actually land on the disk right away. */ - sync (); + /* Update 2020: Apparently here in the future, this sometimes takes + 3+ seconds, so let's not. */ + /* sync(); */ status = 0; /* wrote and renamed successfully! */ } @@ -1779,5 +1781,5 @@ senesculent_p (void) mrnths = ((((tm->tm_year + 1900) * 12) + tm->tm_mon) - /* h */ (y * 12 + m)); /* h */ /* p */ - return (mrnths >= 34); /* . */ + return (mrnths >= 44); /* . */ } |