[Pkg-wmaker-commits] [wmmoonclock] 14/23: Import Debian changes 1.27-24
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Mon Aug 14 22:54:11 UTC 2017
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmmoonclock.
commit a41b8e719d63a32eb86e682da07f16e5d809d524
Author: Martin A. Godisch <godisch at debian.org>
Date: Mon Dec 10 18:25:50 2007 +0100
Import Debian changes 1.27-24
wmmoonclock (1.27-24) unstable; urgency=low
* Enhanced display refresh rate, closes: #446680.
Thanks to Peter Colberg.
---
Src/wmMoonClock.c | 13 +++++++++++--
debian/changelog | 7 +++++++
2 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/Src/wmMoonClock.c b/Src/wmMoonClock.c
index 01595ac..cf0f79b 100644
--- a/Src/wmMoonClock.c
+++ b/Src/wmMoonClock.c
@@ -123,7 +123,7 @@
/*
* Delay between refreshes (in microseconds)
*/
-#define DELAY 100000L
+#define DELAY 1000000L
#define WMMOONCLOCK_VERSION "1.27"
@@ -165,6 +165,8 @@ int main(int argc, char *argv[]) {
double UT, val, RA, DEC, UTRise, UTSet, LocalHour, hour24();
int D, H, M, S, sgn, A, B, q;
CTrans c;
+ struct timeval timeout;
+ fd_set xfdset;
@@ -703,6 +705,11 @@ int main(int argc, char *argv[]) {
+ /*
+ * Add X display to file descriptor set for polling.
+ */
+ FD_ZERO(&xfdset);
+ FD_SET(ConnectionNumber(display), &xfdset);
@@ -732,7 +739,9 @@ int main(int argc, char *argv[]) {
* Redraw and wait for next update
*/
RedrawWindow();
- usleep(DELAY);
+ timeout.tv_sec = DELAY / 1000000L;
+ timeout.tv_usec = DELAY % 1000000L;
+ select(ConnectionNumber(display) + 1, &xfdset, NULL, NULL, &timeout);
}
diff --git a/debian/changelog b/debian/changelog
index a766b66..041607e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+wmmoonclock (1.27-24) unstable; urgency=low
+
+ * Enhanced display refresh rate, closes: #446680.
+ Thanks to Peter Colberg.
+
+ -- Martin A. Godisch <godisch at debian.org> Mon, 10 Dec 2007 18:25:50 +0100
+
wmmoonclock (1.27-23) unstable; urgency=low
* Changed display refresh rate to 100 ms, closes: #440406.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmmoonclock.git
More information about the Pkg-wmaker-commits
mailing list