File p_mouse_misc.diff of Package xorg-x11-driver-input

--- programs/Xserver/hw/xfree86/input/mouse/mouse.c	1 Nov 2004 16:45:53 -0000	1.1.1.39
+++ programs/Xserver/hw/xfree86/input/mouse/mouse.c	17 Mar 2005 18:39:52 -0000
@@ -967,6 +967,9 @@
     if (!(pMse = xcalloc(sizeof(MouseDevRec), 1)))
 	return pInfo;
     pInfo->private = pMse;
+    /* for sanity check in Misc extension - Hack! */
+    pMse->magic = MOUSE_MAGIC;
+    pMse->size = sizeof(*pMse);
     pMse->Ctrl = MouseCtrl;
     pMse->PostEvent = MousePostEvent;
     pMse->CommonOptions = MouseCommonOptions;
openSUSE Build Service is sponsored by