Fix condition for sending cursor-click