* lisp/frame.el (frame-monitor-attributes): Fall back to the last monitor
when frames monitor attributes is still uninitialized. (Bug#34680)
This commit is contained in:
parent
2c541d8478
commit
ded3c8de80
1 changed files with 4 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue