check WINTITLE_CLOSEBOX flag before taking action on the close button

Github-hook: fix #37
refactor rtgui_topwin_title_onmouse