diff --git a/lisp/frame.el b/lisp/frame.el index e501daefb4c..7b57aa3df1f 100644 --- a/lisp/frame.el +++ b/lisp/frame.el @@ -2434,7 +2434,11 @@ See also `toggle-frame-maximized'." (set-frame-parameter nil 'fullscreen fullscreen-restore) (set-frame-parameter nil 'fullscreen nil))) (modify-frame-parameters - nil `((fullscreen . fullboth) (fullscreen-restore . ,fullscreen)))))) + nil `((fullscreen . fullboth) (fullscreen-restore . ,fullscreen)))) + ;; Manipulating a frame without waiting for the fullscreen + ;; animation to complete can cause a crash, or other unexpected + ;; behaviour, on macOS (bug#28496). + (when (featurep 'cocoa) (sit-for 1)))) ;;;; Key bindings