summaryrefslogtreecommitdiff
path: root/lisp/frame.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2014-10-04 00:05:21 -0700
committerGlenn Morris <rgm@gnu.org>2014-10-04 00:05:21 -0700
commit10501882f7c23525c14f3f4712ce34f7fe335864 (patch)
treef8b8b8a7d2abbfeaf4a48ccd0082e3c80dd5a15e /lisp/frame.el
parent03c4553666d2e99d4e6f51f2195c0136d317f0c9 (diff)
parent9352c1465fc4c32e04e763b4bf70e24292f06eed (diff)
downloademacs-10501882f7c23525c14f3f4712ce34f7fe335864.tar.gz
Merge from emacs-24; up to 2014-07-20T16:14:58Z!dmantipov@yandex.ru
Diffstat (limited to 'lisp/frame.el')
-rw-r--r--lisp/frame.el22
1 files changed, 10 insertions, 12 deletions
diff --git a/lisp/frame.el b/lisp/frame.el
index 0b26e356f07..19c878b59e3 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -1276,7 +1276,7 @@ bars (top, bottom, or nil)."
(defun frame-monitor-attributes (&optional frame)
"Return the attributes of the physical monitor dominating FRAME.
-If FRAME is omitted, describe the currently selected frame.
+If FRAME is omitted or nil, describe the currently selected frame.
A frame is dominated by a physical monitor when either the
largest area of the frame resides in the monitor, or the monitor
@@ -1554,16 +1554,15 @@ If DISPLAY is omitted or nil, it defaults to the selected frame's display."
(defun display-monitor-attributes-list (&optional display)
"Return a list of physical monitor attributes on DISPLAY.
-Each element of the list represents the attributes of each
-physical monitor. The first element corresponds to the primary
-monitor.
+If DISPLAY is omitted or nil, it defaults to the selected frame's display.
+Each element of the list represents the attributes of a physical
+monitor. The first element corresponds to the primary monitor.
-Attributes for a physical monitor is represented as an alist of
-attribute keys and values as follows:
+The attributes for a physical monitor are represented as an alist
+of attribute keys and values as follows:
- geometry -- Position and size in pixels in the form of
- (X Y WIDTH HEIGHT)
- workarea -- Position and size of the workarea in pixels in the
+ geometry -- Position and size in pixels in the form of (X Y WIDTH HEIGHT)
+ workarea -- Position and size of the work area in pixels in the
form of (X Y WIDTH HEIGHT)
mm-size -- Width and height in millimeters in the form of
(WIDTH HEIGHT)
@@ -1576,11 +1575,10 @@ with (*) are optional.
A frame is dominated by a physical monitor when either the
largest area of the frame resides in the monitor, or the monitor
is the closest to the frame if the frame does not intersect any
-physical monitors. Every non-tip frame (including invisible one)
+physical monitors. Every (non-tooltip) frame (including invisible ones)
in a graphical display is dominated by exactly one physical
monitor at a time, though it can span multiple (or no) physical
-monitors.
-If DISPLAY is omitted or nil, it defaults to the selected frame's display."
+monitors."
(let ((frame-type (framep-on-display display)))
(cond
((eq frame-type 'x)