summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2001-11-22 23:38:21 +0000
committerKeith Packard <keithp@keithp.com>2001-11-22 23:38:21 +0000
commit636390fb9d6314e506f593da6556fa198b4e9bf6 (patch)
tree7f7a728ed87fe5d4f3eafb680c1c4f269c5fa59c
parent668c25a769044f06ed47a3145a11aceeb9574c9d (diff)
kdrive: initialize all Linux mouse driver fieldsDomain-sync1Domain-base
-rw-r--r--hw/kdrive/linux/mouse.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/hw/kdrive/linux/mouse.c b/hw/kdrive/linux/mouse.c
index afd6433e0..2e46d3db1 100644
--- a/hw/kdrive/linux/mouse.c
+++ b/hw/kdrive/linux/mouse.c
@@ -1,5 +1,5 @@
/*
- * $XFree86: xc/programs/Xserver/hw/kdrive/linux/mouse.c,v 1.1 2001/10/12 06:33:10 keithp Exp $
+ * $XFree86: xc/programs/Xserver/hw/kdrive/linux/mouse.c,v 1.2 2001/11/08 09:35:08 keithp Exp $
*
* Copyright © 2001 Keith Packard, member of The XFree86 Project, Inc.
*
@@ -929,10 +929,12 @@ MouseInit (void)
km = (Kmouse *) xalloc (sizeof (Kmouse));
if (km)
{
- km->tty = isatty (fd);
- mi->driver = km;
km->iob.fd = fd;
km->iob.avail = km->iob.used = 0;
+ km->prot = 0;
+ km->i_prot = 0;
+ km->tty = isatty (fd);
+ mi->driver = km;
MouseFirstProtocol (km, mi->prot);
if (KdRegisterFd (MouseInputType, fd, MouseRead, (void *) mi))
n++;