Fixed window being in background in osx

When starting up on osx, ninja' s main window will stay on background, this snippet fixes the issue