Fix fullscreen crash on macOS (bug#28496)
* lisp/frame.el (toggle-frame-fullscreen): Wait for animation to complete on macOS.
This commit is contained in:
parent
3db0dc2168
commit
6dfc778d54
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue