[Pkg-wmaker-commits] [wmsun] 13/73: Imported Debian patch 1.03-26

Doug Torrance dtorrance-guest at moszumanska.debian.org
Fri Aug 28 12:04:42 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmsun.

commit 592f6f991586ddedc178942152ed22e34ae28175
Author: Martin A. Godisch <godisch at debian.org>
Date:   Sat Feb 2 17:57:36 2008 +0100

    Imported Debian patch 1.03-26
---
 debian/changelog |  8 ++++++++
 debian/control   |  2 +-
 wmSun/wmSun.c    | 13 +++++++++++--
 3 files changed, 20 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 72f37b9..f58ea83 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+wmsun (1.03-26) unstable; urgency=low
+
+  * Enhanced display refresh rate, closes: #446681.
+    Thanks to Peter Colberg.
+  * Updated standards version.
+
+ -- Martin A. Godisch <godisch at debian.org>  Sat, 02 Feb 2008 17:57:36 +0100
+
 wmsun (1.03-25) unstable; urgency=low
 
   * Fixed clean target, closes: #445622.
diff --git a/debian/control b/debian/control
index eed673a..6e3f11d 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: x11
 Priority: optional
 Maintainer: Martin A. Godisch <godisch at debian.org>
 Build-Depends: libx11-dev, libxext-dev, libxpm-dev
-Standards-Version: 3.7.2
+Standards-Version: 3.7.3
 
 Package: wmsun
 Architecture: any
diff --git a/wmSun/wmSun.c b/wmSun/wmSun.c
index 7df3a3f..d60d3e2 100644
--- a/wmSun/wmSun.c
+++ b/wmSun/wmSun.c
@@ -86,7 +86,7 @@
 /* 
  *  Delay between refreshes (in microseconds) 
  */
-#define DELAY 100000L
+#define DELAY 1000000L
 #define WMSUN_VERSION "1.03"
 
 #define DegPerRad       57.29577951308232087680
@@ -132,6 +132,8 @@ int main(int argc, char *argv[]) {
     long		CurrentLocalTime, CurrentGMTTime, date;
     double		UT, val, LTRise, LTSet, LocalHour, hour24();
     int			H, M;
+    struct timeval	timeout;
+    fd_set		xfdset;
 
 
 
@@ -266,6 +268,11 @@ int main(int argc, char *argv[]) {
 
 
 
+	/*
+	 *  Add X display to file descriptor set for polling.
+	 */
+	FD_ZERO(&xfdset);
+	FD_SET(ConnectionNumber(display), &xfdset);
 
 
 
@@ -296,7 +303,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);
 
 
      }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmsun.git



More information about the Pkg-wmaker-commits mailing list