X mouse control