Fixed swap interval.
Restored most window functionality.