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.
This commit is contained in:
Henrik Lissner 2021-03-06 12:09:28 -05:00
parent 04a70e23c4
commit 638c980163

View file

@ -24,9 +24,10 @@
;; Sets `ns-transparent-titlebar' and `ns-appearance' frame parameters so window
;; borders will match the enabled theme.
(when (or (daemonp)
(and (or (daemonp)
(display-graphic-p))
(add-hook 'doom-load-theme-hook #'ns-auto-titlebar-mode))
(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