aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/frameset.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/lisp/frameset.el b/lisp/frameset.el
index 60b6fe38ad9..9a7a75f5efc 100644
--- a/lisp/frameset.el
+++ b/lisp/frameset.el
@@ -1346,6 +1346,16 @@ All keyword parameters default to nil."
1346 (error 1346 (error
1347 (delay-warning 'frameset (error-message-string err) :warning)))))) 1347 (delay-warning 'frameset (error-message-string err) :warning))))))
1348 1348
1349 ;; Make sure the frame with last-focus-update has focus.
1350 (let ((last-focus-frame
1351 (catch 'last-focus
1352 (maphash (lambda (frame _)
1353 (when (frame-parameter frame 'last-focus-update)
1354 (throw 'last-focus frame)))
1355 frameset--action-map))))
1356 (when last-focus-frame
1357 (select-frame-set-input-focus last-focus-frame)))
1358
1349 ;; Make sure there's at least one visible frame. 1359 ;; Make sure there's at least one visible frame.
1350 (unless (or (daemonp) 1360 (unless (or (daemonp)
1351 (catch 'visible 1361 (catch 'visible