update ` toggle-fullscreen` function under Mac OS X