Date: Wed, 19 Jul 2000 15:08:39 +0200 From: Thierry.Herbelot@alcatel.fr To: Sascha Blank <sblank@addcom.de> Cc: stable@FreeBSD.ORG, jmz@FreeBSD.ORG Subject: Re: lost mouse when switching back to X Message-ID: <C1256921.00483662.00@frmta003.netfr.alcatel.fr>
next in thread | raw e-mail | index | archive | help
Hello, a bit late, but .... I've used your patch, but it does not apply completely clean (some <tab> converted to <space> ?) I've patched manually the sources like you said, rebuilt XFree 4.01, reinstalled, and it seems to work **quite fine** (at least switching to the text console and back works as expected) Thanks a lot TfH Sascha Blank <sblank@addcom.de> on 18/07/2000 17:24:52 To: Thierry HERBELOT/FR/ALCATEL@ALCATEL cc: stable@FreeBSD.ORG, jmz@FreeBSD.ORG Subject: Re: lost mouse when switching back to X 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 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?C1256921.00483662.00>