Only rearrange normal windows.
Refactor layout functions.