moused: Omit superfluous gettimeofday calls when mouse only moves
authorImre Vadasz <imre@vdsz.com>
Thu, 24 Dec 2015 11:50:37 +0000 (12:50 +0100)
committerImre Vadász <imre@vdsz.com>
Thu, 24 Dec 2015 12:30:49 +0000 (13:30 +0100)
commitc035a3e5b0421938ba7530a7ff839418a2ee8315
tree7f7bde2b1bdd19f66bdd84ed900d09fdfd76c69a
parent4a1f0d757dc89c9bbe3a5b0e16c28eb180939912
moused: Omit superfluous gettimeofday calls when mouse only moves

The gettimeofday() is only needed when a mouse button state changed.
usr.sbin/moused/moused.c