diff options
| author | Po Lu | 2023-01-13 15:53:22 +0800 |
|---|---|---|
| committer | Po Lu | 2023-01-13 15:53:22 +0800 |
| commit | bb3ceb6e04ac90158c16ac80f1c4a8adbbb3384d (patch) | |
| tree | 94620bca80bdaea05f20e11ca0c8b1619f09d911 /src | |
| parent | f9732131cf3c67e24db74a3d49f256d3c189a7e3 (diff) | |
| download | emacs-bb3ceb6e04ac90158c16ac80f1c4a8adbbb3384d.tar.gz emacs-bb3ceb6e04ac90158c16ac80f1c4a8adbbb3384d.zip | |
* src/frame.c (make_monitor_attribute_list): Allow source to be NULL.
Diffstat (limited to 'src')
| -rw-r--r-- | src/frame.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/frame.c b/src/frame.c index 36a256f1f3d..286c9a2cb71 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -6138,8 +6138,11 @@ make_monitor_attribute_list (struct MonitorInfo *monitors, | |||
| 6138 | mi->work.width, mi->work.height); | 6138 | mi->work.width, mi->work.height); |
| 6139 | geometry = list4i (mi->geom.x, mi->geom.y, | 6139 | geometry = list4i (mi->geom.x, mi->geom.y, |
| 6140 | mi->geom.width, mi->geom.height); | 6140 | mi->geom.width, mi->geom.height); |
| 6141 | attributes = Fcons (Fcons (Qsource, build_string (source)), | 6141 | |
| 6142 | attributes); | 6142 | if (source) |
| 6143 | attributes = Fcons (Fcons (Qsource, build_string (source)), | ||
| 6144 | attributes); | ||
| 6145 | |||
| 6143 | attributes = Fcons (Fcons (Qframes, AREF (monitor_frames, i)), | 6146 | attributes = Fcons (Fcons (Qframes, AREF (monitor_frames, i)), |
| 6144 | attributes); | 6147 | attributes); |
| 6145 | #ifdef HAVE_PGTK | 6148 | #ifdef HAVE_PGTK |