summaryrefslogtreecommitdiff
path: root/misc/xosd
diff options
context:
space:
mode:
authorWill Andrews <will@FreeBSD.org>2001-05-21 04:16:33 +0000
committerWill Andrews <will@FreeBSD.org>2001-05-21 04:16:33 +0000
commit20e5ccceb788c4d1513f5ff7561371757b1dfbce (patch)
treedfaaa30534cb25b01e7c2485808f7ebeeb9f390c /misc/xosd
parentCorrect a few mistakes: (diff)
Resurrect xosd.c patch that I accidentally nuked with revision 1.2 of
files/patch-aa; this fixes xosd's needless squandering of cpu resources. Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=42832
Diffstat (limited to 'misc/xosd')
-rw-r--r--misc/xosd/files/patch-xosd.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/misc/xosd/files/patch-xosd.c b/misc/xosd/files/patch-xosd.c
new file mode 100644
index 000000000000..e2484171b2c1
--- /dev/null
+++ b/misc/xosd/files/patch-xosd.c
@@ -0,0 +1,20 @@
+--- xosd.c Thu Mar 22 18:55:45 2001
++++ xosd.c.new Sun May 20 23:13:52 2001
+@@ -270,7 +270,7 @@
+ if (!XCheckWindowEvent (osd->display, osd->window, ExposureMask, &report))
+ {
+ MUTEX_RELEASE ();
+- usleep (500);
++ usleep (100000);
+ continue;
+ }
+ MUTEX_RELEASE ();
+@@ -304,7 +304,7 @@
+
+ while (!osd->done)
+ {
+- usleep (1000);
++ usleep (200000);
+ MUTEX_GET ();
+ if (osd->timeout != -1 &&
+ osd->mapped &&