summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Third <alan@idiocy.org>2017-10-08 19:26:34 +0100
committerAlan Third <alan@idiocy.org>2017-10-08 19:26:34 +0100
commit745aea2296caa87758d4e55b95ed63124970e8c3 (patch)
treecb59d0b672ad06c6dc6f8fbfdd85970a38e7f979
parent1cd334cd47dd3d5085a0779499aff2f6617cb3d5 (diff)
downloademacs-745aea2296caa87758d4e55b95ed63124970e8c3.tar.gz
Change pause in fullscreen toggling for NS port (bug#28496)
* lisp/frame.el (toggle-frame-fullscreen): Replace sit-for with sleep-for, and reduce time.
-rw-r--r--lisp/frame.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/frame.el b/lisp/frame.el
index 7b57aa3df1f..f8aa5c6e523 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -2438,7 +2438,7 @@ See also `toggle-frame-maximized'."
;; 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))))
+ (when (featurep 'cocoa) (sleep-for 0.5))))
;;;; Key bindings