Improve documentation of 'display-monitor-attributes-
authorEli Zaretskii <eliz@gnu.org>
Sun, 2 Feb 2025 13:58:18 +0000 (15:58 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sun, 2 Feb 2025 13:58:18 +0000 (15:58 +0200)
* doc/lispref/frames.texi (Multiple Terminals):
* lisp/frame.el (display-monitor-attributes-list): Better
documentation of what the 'source' key means on X.  (Bug#75936)

doc/lispref/frames.texi
lisp/frame.el

index 2426c9c890fd89992a2bcd46f26fa47b8ce0e25f..39bfed48e4e44246a388670a8f4544e3ea6b5844 100644 (file)
@@ -420,7 +420,12 @@ Name of the physical monitor as @var{string}.
 
 @item source
 Source of the multi-monitor information as @var{string};
-e.g., @samp{XRandR 1.5}, @samp{XRandr} or @samp{Xinerama}.
+on X, it could be @samp{XRandR 1.5}, @samp{XRandr}, @samp{Xinerama},
+@samp{Gdk}, or @samp{fallback}.  The last value of @samp{source} means
+that Emacs was built without GTK and without XRandR or Xinerama
+extensions, in which case the information about multiple physical
+monitors will be provided as if they all as a whole formed a single
+monitor.
 @end table
 
 @var{x}, @var{y}, @var{width}, and @var{height} are integers.
index 64b9f6acff8fef6c12b7a4ed1d10f0bac7e91292..ec3d38fa3fa8b6637e990c639022c3019eb81312 100644 (file)
@@ -2465,6 +2465,10 @@ details depend on the platform and environment.
 The `source' attribute describes the source from which the
 information was obtained.  On X, this may be one of: \"Gdk\",
 \"XRandR 1.5\", \"XRandr\", \"Xinerama\", or \"fallback\".
+If it is \"fallback\", it means Emacs was built without GTK
+and without XrandR or Xinerama extensions, in which case the
+information about multiple physical monitors will be provided
+as if they all as a whole formed a single monitor.
 
 A frame is dominated by a physical monitor when either the
 largest area of the frame resides in the monitor, or the monitor