implemented click and focus on root window