[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master ded3c8d: * lisp/frame.el (frame-monitor-attributes)
From: |
Juri Linkov |
Subject: |
[Emacs-diffs] master ded3c8d: * lisp/frame.el (frame-monitor-attributes): Fall back to the last monitor |
Date: |
Tue, 19 Mar 2019 17:43:25 -0400 (EDT) |
branch: master
commit ded3c8de802d98635dc06faa178f91f99afdac53
Author: Juri Linkov <address@hidden>
Commit: Juri Linkov <address@hidden>
* lisp/frame.el (frame-monitor-attributes): Fall back to the last monitor
when frames monitor attributes is still uninitialized. (Bug#34680)
---
lisp/frame.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lisp/frame.el b/lisp/frame.el
index c5802e3..7cfe546 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -1696,7 +1696,10 @@ keys and their meanings."
(or frame (setq frame (selected-frame)))
(cl-loop for attributes in (display-monitor-attributes-list frame)
for frames = (cdr (assq 'frames attributes))
- if (memq frame frames) return attributes))
+ if (memq frame frames) return attributes
+ ;; On broken frames monitor attributes,
+ ;; fall back to the last monitor.
+ finally return attributes))
(defun frame-monitor-attribute (attribute &optional frame x y)
"Return the value of ATTRIBUTE on FRAME's monitor.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master ded3c8d: * lisp/frame.el (frame-monitor-attributes): Fall back to the last monitor,
Juri Linkov <=