diff options
author | Kazutaka YOKOTA <yokota@FreeBSD.org> | 1998-06-24 10:21:30 +0000 |
---|---|---|
committer | Kazutaka YOKOTA <yokota@FreeBSD.org> | 1998-06-24 10:21:30 +0000 |
commit | bf41934ccb6b45775d83fab392e069f995d0f4c9 (patch) | |
tree | 2446976ce081d8418b0fabec13bcd77bf1d5be9a /sys/isa/syscons.c | |
parent | e29bc9add444363929dc035b75138f748c00c58b (diff) |
Don't refer to mouse_info.u.datea.[xyz] while processing MOUSE_BUTTON_EVENT
ioctl. These fields don't have valid values for this ioctl.
PR: kern/6928
Submitted by: Bill Fenner <fenner@parc.xerox.com>
Notes
Notes:
svn path=/head/; revision=37136
Diffstat (limited to 'sys/isa/syscons.c')
-rw-r--r-- | sys/isa/syscons.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/isa/syscons.c b/sys/isa/syscons.c index 8c12365ef88b..de7e370a60fd 100644 --- a/sys/isa/syscons.c +++ b/sys/isa/syscons.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: syscons.c,v 1.262 1998/06/07 17:11:02 dfr Exp $ + * $Id: syscons.c,v 1.263 1998/06/13 18:53:22 steve Exp $ */ #include "sc.h" @@ -1307,10 +1307,7 @@ scioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p) cur_console->mouse_buttons &= ~mouse->u.event.id; mouse_status.button &= ~mouse->u.event.id; } - mouse_status.flags |= - ((mouse->u.data.x || mouse->u.data.y || mouse->u.data.z) ? - MOUSE_POSCHANGED : 0) - | (mouse_status.obutton ^ mouse_status.button); + mouse_status.flags |= mouse_status.obutton ^ mouse_status.button; if (cur_console->status & MOUSE_ENABLED) cur_console->status |= MOUSE_VISIBLE; |