Skip to content

Commit

Permalink
Remove workaround for this, it was fixed in 26
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronjensen committed Sep 12, 2017
1 parent 3aac801 commit b89f85e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions restore-frame-position.el
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,8 @@
";;; Last generated " (current-time-string) " by `restore-frame-position'.\n"
(format "(add-to-list 'initial-frame-alist '(top . %d))\n" (max frame-geometry-top 0))
(format "(add-to-list 'initial-frame-alist '(left . %d))\n" (max frame-geometry-left 0))
;; For some reason, we're about 20x4px off, so adjust
(format "(add-to-list 'initial-frame-alist '(width . (text-pixels . %d)))\n" (max (- frame-geometry-width 20) 0))
(format "(add-to-list 'initial-frame-alist '(height . (text-pixels . %d)))\n" (max (- frame-geometry-height 4) 0)))
(format "(add-to-list 'initial-frame-alist '(width . (text-pixels . %d)))\n" (max frame-geometry-width 0))
(format "(add-to-list 'initial-frame-alist '(height . (text-pixels . %d)))\n" (max frame-geometry-height 0)))
(when (file-writable-p restore-frame-position-file)
(write-file restore-frame-position-file))))))

Expand Down

0 comments on commit b89f85e

Please sign in to comment.