Date: Tue, 18 Jul 2000 17:24:52 +0200 From: Sascha Blank <sblank@addcom.de> To: Thierry.Herbelot@alcatel.fr Cc: stable@freebsd.org, jmz@freebsd.org Subject: Re: lost mouse when switching back to X Message-ID: <20000718172452.A8300@ally.blank.de> In-Reply-To: <no.id>; from Thierry.Herbelot@alcatel.fr on Mon, Jul 17, 2000 at 02:13:57PM %2B0200 References: <no.id>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello, On Mon, Jul 17, 2000 at 02:13:57PM +0200, Thierry.Herbelot@alcatel.fr wrote: > When I switch from X-Windows to the text console and then back to > X-windows (Ctrl-Alt-F1, then Alt-F9), the mouse pointer is fixed on the > screen (When I move the "physical" mouse, the pointer stays at the same > place on the X screen). I had this problem on my 4.1-RC machine running XFree86 4.0.1 and moused(8) with a PS/2 mouse as well. So I spent some hours digging through the XFree86 source code and finally came up with a quick'n' dirty patch that cures the problem at least on my system. I haven't contacted the XFree86 people about it yet as I want to hear some more "works for me here too!" before I'll file a PR. Although it's rather late it might be a candidate for inclusion in the ports collection before the 4.1-RELEASE. *** xc/programs/Xserver/hw/xfree86/os-support/bsd/bsd_mouse.c.orig Sat Feb 12 21:45:41 2000 --- xc/programs/Xserver/hw/xfree86/os-support/bsd/bsd_mouse.c Tue Jul 18 17:04:23 2000 *************** *** 165,171 **** --- 165,175 ---- mode.rate = rate > 0 ? rate : -1; mode.resolution = res > 0 ? res : -1; mode.accelfactor = -1; + #ifdef __FreeBSD__ + mode.level = 1; + #else mode.level = -1; + #endif ioctl(pInfo->fd, MOUSE_SETMODE, &mode); } #endif *** xc/programs/Xserver/hw/xfree86/input/mouse/mouse.c.orig Sat Jul 1 01:39:02 2000 --- xc/programs/Xserver/hw/xfree86/input/mouse/mouse.c Tue Jul 18 17:10:51 2000 *************** *** 692,701 **** --- 692,706 ---- pMse->protocolID = protocolID; } } + #ifndef __FreeBSD__ memcpy(pMse->protoPara, proto[pMse->protocolID], sizeof(pMse->protoPara)); + #endif if (automatic) { if (name) { + #ifdef __FreeBSD__ + memcpy(pMse->protoPara, proto[pMse->protocolID], sizeof(pMse->protoPara)); + #endif /* Possible protoPara overrides from SetupAuto. */ for (i = 0; i < sizeof(pMse->protoPara); i++) if (protoPara[i] != -1) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000718172452.A8300>