Skip to content

Commit

Permalink
fix display
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Jun 23, 2024
1 parent 90725d7 commit 171a3ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions responsive-window.el
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

;; Author: Shen, Jen-Chieh <jcs090218@gmail.com>
;; Maintainer: Shen, Jen-Chieh <jcs090218@gmail.com>
;; URL: https://github.com/jcs090218/responsive-window
;; Version: 0.0.1
;; Package-Requires: ((emacs "24.3"))
;; URL: https://github.com/jcs-elpa/responsive-window
;; Version: 0.1.0
;; Package-Requires: ((emacs "26.1") (elenv "0.1.0"))
;; Keywords: frames

;; This file is not part of GNU Emacs.
Expand Down Expand Up @@ -80,7 +80,7 @@

(defun responsive-window--reach-size ()
"Reach the size will want to remember the layout."
(let ((max-size (* (display-pixel-width) (display-pixel-height)))
(let ((max-size (* (elenv-monitor-pixel-width) (elenv-monitor-pixel-height)))
(frame-size (* (frame-pixel-width) (frame-pixel-height))))
(< (* max-size 0.8) frame-size)))

Expand Down

0 comments on commit 171a3ef

Please sign in to comment.