Fixed problem with fullscreen window level
Ported some GLView functionality to Swift