Refactor window management to make layouts per-screen.