svn commit: r270329 - head/sys/dev/vt
Jean-Sebastien Pedron
dumbbell at FreeBSD.org
Fri Aug 22 13:48:34 UTC 2014
Author: dumbbell
Date: Fri Aug 22 13:48:33 2014
New Revision: 270329
URL: http://svnweb.freebsd.org/changeset/base/270329
Log:
vt(4): Mark new mouse position as dirty only when it's actually displayed
MFC after: 1 week
Modified:
head/sys/dev/vt/vt_core.c
Modified: head/sys/dev/vt/vt_core.c
==============================================================================
--- head/sys/dev/vt/vt_core.c Fri Aug 22 13:39:56 2014 (r270328)
+++ head/sys/dev/vt/vt_core.c Fri Aug 22 13:48:33 2014 (r270329)
@@ -893,9 +893,6 @@ vt_flush(struct vt_device *vd)
vtbuf_mouse_cursor_position(&vw->vw_buf,
vd->vd_moldx / vf->vf_width,
vd->vd_moldy / vf->vf_height);
- vtbuf_mouse_cursor_position(&vw->vw_buf,
- vd->vd_mx / vf->vf_width,
- vd->vd_my / vf->vf_height);
/*
* Save point of last mouse cursor to erase it
@@ -908,6 +905,11 @@ vt_flush(struct vt_device *vd)
if (!kdb_active && panicstr == NULL) {
/* Mouse enabled, and DDB isn't active. */
cursor = &vt_default_mouse_pointer;
+
+ /* Mark new mouse position as dirty. */
+ vtbuf_mouse_cursor_position(&vw->vw_buf,
+ vd->vd_mx / vf->vf_width,
+ vd->vd_my / vf->vf_height);
}
}
#endif
More information about the svn-src-head
mailing list