Memory leak and performance enhancement

Do not push move events to supervisor when mouse event listener is not running.
This fix effectively removes one pthread mutex lock+unlock for every move event.