mirror of
https://github.com/doomemacs/doomemacs.git
synced 2025-12-06 02:30:33 -08:00
fix: recursive redisplay error from doom-switch-frame-hook
If a function on doom-switch-frame-hook triggered a redisplay, it could
cause infinite recursion.
Amend: 653b465c74
This commit is contained in:
parent
919e658436
commit
98273b639b
2 changed files with 5 additions and 5 deletions
|
|
@ -132,7 +132,8 @@ the frame through some other means.")
|
|||
doom-switch-frame-hook-debounce-delay))
|
||||
(with-selected-frame fr
|
||||
(unwind-protect
|
||||
(run-hooks 'doom-switch-frame-hook)
|
||||
(let ((inhibit-redisplay t))
|
||||
(run-hooks 'doom-switch-frame-hook))
|
||||
(set-frame-parameter fr '+last-focus (current-time)))))))))))
|
||||
|
||||
(let (last-focus-state)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue