summaryrefslogtreecommitdiffstats
path: root/sys/isa
diff options
context:
space:
mode:
authoryokota <yokota@FreeBSD.org>1998-06-24 10:21:30 +0000
committeryokota <yokota@FreeBSD.org>1998-06-24 10:21:30 +0000
commit6edc1aa5f5d4ab49a78fee3292428c4b9e8a9db0 (patch)
tree4cca811d0203438f3b59f48140c3be4334c48944 /sys/isa
parentf07cfaed29f9b061b8c1cf6d3e5895b9c21cedde (diff)
downloadFreeBSD-src-6edc1aa5f5d4ab49a78fee3292428c4b9e8a9db0.zip
FreeBSD-src-6edc1aa5f5d4ab49a78fee3292428c4b9e8a9db0.tar.gz
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>
Diffstat (limited to 'sys/isa')
-rw-r--r--sys/isa/syscons.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/isa/syscons.c b/sys/isa/syscons.c
index 8c12365..de7e370 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;
OpenPOWER on IntegriCloud