Removed redundant code for X11 mouse events