Use proper flags for setting cursor position when clicking