Screen resolution + edit mode navigation

The screen mode is now a argument, screen navigation corners of mouse in
edit mode working ok now!