1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

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
This commit is contained in:
Will Andrews 2001-05-21 04:16:33 +00:00
parent 904a744a3e
commit 20e5ccceb7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=42832

View File

@ -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 &&