emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

feature/android bb3ceb6e04 2/6: * src/frame.c (make_monitor_attribute_li


From: Po Lu
Subject: feature/android bb3ceb6e04 2/6: * src/frame.c (make_monitor_attribute_list): Allow source to be NULL.
Date: Fri, 13 Jan 2023 03:09:26 -0500 (EST)

branch: feature/android
commit bb3ceb6e04ac90158c16ac80f1c4a8adbbb3384d
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    * src/frame.c (make_monitor_attribute_list): Allow source to be NULL.
---
 src/frame.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/frame.c b/src/frame.c
index 36a256f1f3..286c9a2cb7 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -6138,8 +6138,11 @@ make_monitor_attribute_list (struct MonitorInfo 
*monitors,
                         mi->work.width, mi->work.height);
       geometry = list4i (mi->geom.x, mi->geom.y,
                         mi->geom.width, mi->geom.height);
-      attributes = Fcons (Fcons (Qsource, build_string (source)),
-                          attributes);
+
+      if (source)
+       attributes = Fcons (Fcons (Qsource, build_string (source)),
+                           attributes);
+
       attributes = Fcons (Fcons (Qframes, AREF (monitor_frames, i)),
                          attributes);
 #ifdef HAVE_PGTK



reply via email to

[Prev in Thread] Current Thread [Next in Thread]