diff options
author | jmz <jmz@FreeBSD.org> | 2001-08-24 06:36:49 +0800 |
---|---|---|
committer | jmz <jmz@FreeBSD.org> | 2001-08-24 06:36:49 +0800 |
commit | 7ecfc6d7d5ae5c44f8676e1ea8da51f517939943 (patch) | |
tree | de17a40377744efc588ebae606c9d716c5088d81 /x11 | |
parent | ec14723580333d2d48eca326b6ca8a0e2858b2ba (diff) | |
download | freebsd-ports-gnome-7ecfc6d7d5ae5c44f8676e1ea8da51f517939943.tar.gz freebsd-ports-gnome-7ecfc6d7d5ae5c44f8676e1ea8da51f517939943.tar.zst freebsd-ports-gnome-7ecfc6d7d5ae5c44f8676e1ea8da51f517939943.zip |
Fix a race condition in mouse device.
PR: ports/29982
Submitted by: Michael Robinson <robinson@netrinsics.com>
Diffstat (limited to 'x11')
-rw-r--r-- | x11/XFree86-4/Makefile | 2 | ||||
-rw-r--r-- | x11/XFree86-4/files/patch-mouse | 22 |
2 files changed, 23 insertions, 1 deletions
diff --git a/x11/XFree86-4/Makefile b/x11/XFree86-4/Makefile index 5bf5b2329a13..2dcafe7b144a 100644 --- a/x11/XFree86-4/Makefile +++ b/x11/XFree86-4/Makefile @@ -7,7 +7,7 @@ PORTNAME= XFree86 PORTVERSION= 4.1.0 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= x11 MASTER_SITES= ${MASTER_SITE_XFREE} MASTER_SITE_SUBDIR= 4.1.0 diff --git a/x11/XFree86-4/files/patch-mouse b/x11/XFree86-4/files/patch-mouse new file mode 100644 index 000000000000..314a57f43428 --- /dev/null +++ b/x11/XFree86-4/files/patch-mouse @@ -0,0 +1,22 @@ +--- programs/Xserver/hw/xfree86/input/mouse/mouse.c.orig Sat Aug 18 22:47:30 2001 ++++ programs/Xserver/hw/xfree86/input/mouse/mouse.c Thu Aug 23 17:13:44 2001 +@@ -1837,8 +1837,6 @@ + if ((id = stateTab[pMse->emulateState][4][0]) != 0) { + xf86PostButtonEvent(pInfo->dev, 0, abs(id), (id >= 0), 0, 0); + pMse->emulateState = stateTab[pMse->emulateState][4][2]; +- } else { +- ErrorF("Got unexpected buttonTimer in state %d\n", pMse->emulateState); + } + + xf86UnblockSIGIO (sigstate); +@@ -1892,11 +1890,6 @@ + if (stateTab[pMse->emulateState][4][0] != 0) { + timer = TimerSet(timer, 0, pMse->emulate3Timeout, buttonTimer, + pInfo); +- } else { +- if (timer) { +- TimerFree(timer); +- timer = NULL; +- } + } + } |