Hi,
If separate area is earmarked for main window & secondary window, overlap should not happen. Since footer is declared inside main window, ideally it should not cross the boundary. Check in layout window whether the windows are overlapping.
Regards,
DPM