From owner-freebsd-stable Tue Jul 18 9: 2: 1 2000 Delivered-To: freebsd-stable@freebsd.org Received: from pille.addcom.de (h-62.96.128.34.user.addcom.de [62.96.128.34]) by hub.freebsd.org (Postfix) with SMTP id 550C437BF13 for ; Tue, 18 Jul 2000 09:01:57 -0700 (PDT) (envelope-from sblank@addcom.de) Received: (qmail 4071 invoked from network); 18 Jul 2000 16:01:53 -0000 Received: from h-62.96.149.223.user.addcom.de (HELO ally.blank.de) (root@62.96.149.223) by pille.addcom.de with SMTP; 18 Jul 2000 16:01:53 -0000 Received: (from sblank@localhost) by ally.blank.de (8.10.2/8.10.2) id e6IFOq308381; Tue, 18 Jul 2000 17:24:52 +0200 (CEST) Date: Tue, 18 Jul 2000 17:24:52 +0200 From: Sascha Blank 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> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: ; from Thierry.Herbelot@alcatel.fr on Mon, Jul 17, 2000 at 02:13:57PM +0200 Organization: Computer Center of the University of Trier, Germany Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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