The following patch adds proper support for make-pointer-invisible on macOS. Thanks.