The input handler of SM takes the charge of handling keyboard and mouse input events triggered on client side.
These events are captured and sent back to SM. According to the information of X servers kept in SM, these events will be fed to the corresponding X server