diff options
Diffstat (limited to 'lisp/frameset.el')
| -rw-r--r-- | lisp/frameset.el | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/lisp/frameset.el b/lisp/frameset.el index 85a90f67c68..e11a1da7e9b 100644 --- a/lisp/frameset.el +++ b/lisp/frameset.el | |||
| @@ -1362,9 +1362,18 @@ All keyword parameters default to nil." | |||
| 1362 | ;; Clean up the frame list | 1362 | ;; Clean up the frame list |
| 1363 | (when cleanup-frames | 1363 | (when cleanup-frames |
| 1364 | (let ((map nil) | 1364 | (let ((map nil) |
| 1365 | (cleanup (if (eq cleanup-frames t) | 1365 | (cleanup |
| 1366 | (lambda (frame action) | 1366 | (if (eq cleanup-frames t) |
| 1367 | (when (memq action '(:rejected :ignored)) | 1367 | (lambda (frame action) |
| 1368 | (when (and (memq action '(:rejected :ignored)) | ||
| 1369 | ;; Don't try deleting the daemon's initial | ||
| 1370 | ;; frame, as that would only trigger | ||
| 1371 | ;; warnings. | ||
| 1372 | (not | ||
| 1373 | (and (daemonp) | ||
| 1374 | (equal (terminal-name (frame-terminal | ||
| 1375 | frame)) | ||
| 1376 | "initial_terminal")))) | ||
| 1368 | (delete-frame frame))) | 1377 | (delete-frame frame))) |
| 1369 | cleanup-frames))) | 1378 | cleanup-frames))) |
| 1370 | (maphash (lambda (frame _action) (push frame map)) frameset--action-map) | 1379 | (maphash (lambda (frame _action) (push frame map)) frameset--action-map) |