Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Sep 2005 21:58:27 +0400
From:      Slawa Olhovchenkov <slw@zxy.spb.ru>
To:        Craig Rodrigues <rodrigc@crodrigues.org>
Cc:        rodrigc@freebsd.org, freebsd-current@freebsd.org, mirya@matrix.kiev.ua, Giorgos Keramidas <keramida@freebsd.org>
Subject:   Re: moused related panic
Message-ID:  <20050905175826.GL69481@zxy.spb.ru>
In-Reply-To: <20050905162713.GA92142@crodrigues.org>
References:  <20050903133344.GA633@gothmog.gr> <20050905162713.GA92142@crodrigues.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Sep 05, 2005 at 12:27:13PM -0400, Craig Rodrigues wrote:

> 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?

1. I think your remember '()' around '||'
2. Now mouse cursor not moved.

> 
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050905175826.GL69481>