Improve the way of selecting an area on GLWidget.