select window by mouse click