Fix Cmd-Tab on OS X, fix cursor hide