From 20e5ccceb788c4d1513f5ff7561371757b1dfbce Mon Sep 17 00:00:00 2001 From: Will Andrews Date: Mon, 21 May 2001 04:16:33 +0000 Subject: 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 --- misc/xosd/files/patch-xosd.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 misc/xosd/files/patch-xosd.c (limited to 'misc/xosd') 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 && -- cgit v1.2.3