Skip to content

Commit

Permalink
Don’t toggle maximized if already maximized
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBB authored and syl20bnr committed Apr 1, 2017
1 parent d2b241e commit 3488c82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/core-spacemacs.el
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ the final step of executing code in `emacs-startup-hook'.")
(require 'core-configuration-layer)
(dotspacemacs|call-func dotspacemacs/init "Calling dotfile init...")
(when dotspacemacs-maximized-at-startup
(toggle-frame-maximized)
(unless (frame-parameter nil 'fullscreen)
(toggle-frame-maximized))
(add-to-list 'default-frame-alist '(fullscreen . maximized)))
(dotspacemacs|call-func dotspacemacs/user-init "Calling dotfile user init...")
(setq dotspacemacs-editing-style (dotspacemacs//read-editing-style-config
Expand Down

0 comments on commit 3488c82

Please sign in to comment.