mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-07 12:26:15 +00:00
* 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
@ -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…
Reference in New Issue
Block a user