Skip to content

Commit

Permalink
Fix macOS GUI full screen button wreck caused by GUI setup in early-i…
Browse files Browse the repository at this point in the history
…nit.el
  • Loading branch information
cjf-666 authored and smile13241324 committed Aug 22, 2021
1 parent 1a9ebf4 commit 3d6e32e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.develop
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,7 @@ Other:
- Fixed duplicate quick help and release notes in home buffer
(thanks to mark30247)
- Fixed evil undo in =spacemacs-base= (thanks to duianto)
- Fix macOS GUI full screen button wreck caused by GUI setup in early-init.el
- Other:
- New function =configuration-layer/message= to display message in
=*Messages*= buffer (thanks to Sylvain Benner)
Expand Down
7 changes: 5 additions & 2 deletions early-init.el
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,8 @@
"core/core-early-funcs.el")
nil (not init-file-debug))

;; Remove GUI elements early to avoid some possible grapical glitches.
(spacemacs/removes-gui-elements)
;; Remove GUI elements soon after GUI being initialized to avoid some possible grapical glitches.
;; This has to be done use these hooks,
;; see https://www.gnu.org/software/emacs/manual/html_node/emacs/Early-Init-File.html
(add-hook 'window-setup-hook 'spacemacs/removes-gui-elements)
(add-hook 'tty-setup-hook 'spacemacs/removes-gui-elements)

0 comments on commit 3d6e32e

Please sign in to comment.