Better frame management for OSX