add clip window test case
topwin: misc code formating
simplify the window showing algorithm

Children windows will always be shown when the parent window is shown.
test_cases/simple_win: misc cleanup