From 171a3ef8de9cf5aec1ee3255b196c2b6fe59af9a Mon Sep 17 00:00:00 2001 From: JenChieh Date: Sat, 22 Jun 2024 18:26:26 -0700 Subject: [PATCH] fix display --- responsive-window.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/responsive-window.el b/responsive-window.el index 7429d13..ed48d76 100644 --- a/responsive-window.el +++ b/responsive-window.el @@ -4,9 +4,9 @@ ;; Author: Shen, Jen-Chieh ;; Maintainer: Shen, Jen-Chieh -;; 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. @@ -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)))