This is not a fuction of XWin at all. It is a fuction of the window manager you are running. twm has this behaviior. If you want a different behavior use a different window manager.