From owner-freebsd-current@FreeBSD.ORG Mon Sep 5 16:27:10 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4EDFF16A41F; Mon, 5 Sep 2005 16:27:10 +0000 (GMT) (envelope-from rodrigc@crodrigues.org) Received: from sccrmhc12.comcast.net (sccrmhc12.comcast.net [63.240.76.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id B839743D46; Mon, 5 Sep 2005 16:27:09 +0000 (GMT) (envelope-from rodrigc@crodrigues.org) Received: from c-66-30-115-133.hsd1.ma.comcast.net ([66.30.115.133]) by comcast.net (sccrmhc12) with ESMTP id <20050905162708012002hlpqe>; Mon, 5 Sep 2005 16:27:08 +0000 Received: from c-66-30-115-133.hsd1.ma.comcast.net (localhost.127.in-addr.arpa [127.0.0.1]) by c-66-30-115-133.hsd1.ma.comcast.net (8.13.4/8.13.1) with ESMTP id j85GRExC092161; Mon, 5 Sep 2005 12:27:14 -0400 (EDT) (envelope-from rodrigc@c-66-30-115-133.hsd1.ma.comcast.net) Received: (from rodrigc@localhost) by c-66-30-115-133.hsd1.ma.comcast.net (8.13.4/8.13.1/Submit) id j85GRET5092160; Mon, 5 Sep 2005 12:27:14 -0400 (EDT) (envelope-from rodrigc) Date: Mon, 5 Sep 2005 12:27:13 -0400 From: Craig Rodrigues To: Giorgos Keramidas Message-ID: <20050905162713.GA92142@crodrigues.org> References: <20050903133344.GA633@gothmog.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050903133344.GA633@gothmog.gr> User-Agent: Mutt/1.5.9i Cc: rodrigc@freebsd.org, freebsd-current@freebsd.org, mirya@matrix.kiev.ua, slw@zxy.spb.ru Subject: Re: moused related panic X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Sep 2005 16:27:10 -0000 On Sat, Sep 03, 2005 at 04:33:44PM +0300, Giorgos Keramidas wrote: > This was on a console running with 132x25 mode. Can you try this? Index: scmouse.c =================================================================== RCS file: /home/ncvs/src/sys/dev/syscons/scmouse.c,v retrieving revision 1.38 diff -u -u -r1.38 scmouse.c --- scmouse.c 30 Aug 2005 18:58:16 -0000 1.38 +++ scmouse.c 5 Sep 2005 16:25:07 -0000 @@ -157,7 +157,7 @@ scp->mouse_ypos = (scp->ysize + scp->yoff)*scp->font_size - 1; } - if (scp->mouse_xpos != scp->mouse_oldxpos || scp->mouse_ypos != scp->mouse_oldypos) { + if (scp->mouse_xpos != scp->mouse_oldxpos || scp->mouse_ypos != scp->mouse_oldypos && scp->font_size != 0 && scp->font_width != 0) { scp->status |= MOUSE_MOVED; scp->mouse_pos = (scp->mouse_ypos/scp->font_size - scp->yoff)*scp->xsize -- Craig Rodrigues rodrigc@crodrigues.org