[Bug 740] divide by zero exception in x11drv/mouse.c