From 638c980163e22cffe4c9960e0a5553c6c4232e5e Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 6 Mar 2021 12:09:28 -0500 Subject: [PATCH] Revert 27d3e73 Some users may not be using a theme (*shudder*), in which case ns-auto-titlebar-mode never kicks in. That said, this "fix" didn't fix the targeted issue anyhow. --- modules/os/macos/config.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/os/macos/config.el b/modules/os/macos/config.el index d35eeca43..df70ef5c7 100644 --- a/modules/os/macos/config.el +++ b/modules/os/macos/config.el @@ -24,9 +24,10 @@ ;; Sets `ns-transparent-titlebar' and `ns-appearance' frame parameters so window ;; borders will match the enabled theme. -(when (or (daemonp) - (display-graphic-p)) - (add-hook 'doom-load-theme-hook #'ns-auto-titlebar-mode)) +(and (or (daemonp) + (display-graphic-p)) + (require 'ns-auto-titlebar nil t) + (ns-auto-titlebar-mode +1)) ;; HACK On MacOS, disabling the menu bar makes MacOS treat Emacs as a ;; non-application window -- which means it doesn't automatically capture