Implement window tracking for windowed
Initial windowed support