aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm
diff options
context:
space:
mode:
authortg <tg@FreeBSD.org>1998-11-02 16:08:09 +0800
committertg <tg@FreeBSD.org>1998-11-02 16:08:09 +0800
commite45c59333516ff817b4aa97a9ee950ee35158da7 (patch)
treeadad566d9c323d9d64fed79c76a6812d30b441ab /x11-wm
parenteb4d26698a9723777cc05181fdc5503c2af3d881 (diff)
downloadfreebsd-ports-gnome-e45c59333516ff817b4aa97a9ee950ee35158da7.tar.gz
freebsd-ports-gnome-e45c59333516ff817b4aa97a9ee950ee35158da7.tar.zst
freebsd-ports-gnome-e45c59333516ff817b4aa97a9ee950ee35158da7.zip
Fix CPU hogging.
Submitted by: Brian Handy <handy@physics.montana.edu>
Diffstat (limited to 'x11-wm')
-rw-r--r--x11-wm/windowmaker/files/patch-ai13
1 files changed, 13 insertions, 0 deletions
diff --git a/x11-wm/windowmaker/files/patch-ai b/x11-wm/windowmaker/files/patch-ai
new file mode 100644
index 000000000000..72948f93f1b5
--- /dev/null
+++ b/x11-wm/windowmaker/files/patch-ai
@@ -0,0 +1,13 @@
+--- WINGs/wevent.c.orig Wed Oct 21 14:43:55 1998
++++ WINGs/wevent.c Mon Oct 26 00:05:25 1998
+@@ -387,6 +387,10 @@
+ } else {
+ delay->tv_sec = timerHandler->when.tv_sec - now.tv_sec;
+ delay->tv_usec = timerHandler->when.tv_usec - now.tv_usec;
++ if (delay->tv_usec < 0) {
++ delay->tv_usec += 1000000;
++ delay->tv_sec--;
++ }
+ }
+ }
+